blob: 1bfef8aa048707b8cd207306cc9001abab9fd13f [file] [log] [blame]
package org.eclipse.emf.refactor.smells.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);
}
}