blob: 99aee938aab0dcdbe0949a6ee57ff4fcb3c972d8 [file] [log] [blame]
package org.eclipse.emf.refactor.metrics.papyrus.ui;
import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.ToolbarLayout;
import org.eclipse.swt.graphics.Color;
public class PapyrusDecorationFigure extends Figure {
private static final Color NICE_RED = new Color(null, 232, 72, 72);
public PapyrusDecorationFigure(){
setLayoutManager(new ToolbarLayout());
setOpaque(false);
}
@Override
public void paint(Graphics graphics) {
graphics.setForegroundColor(NICE_RED);
graphics.setLineWidth(4);
graphics.drawRectangle(getClientArea());
super.paint(graphics);
}
}