Search in sources :

Example 1 with MenuActionsFigure

use of org.whole.lang.actions.ui.figures.MenuActionsFigure in project whole by wholeplatform.

the class MenuActionsPart method createFigure.

protected IFigure createFigure() {
    IFigure f = new MenuActionsFigure();
    f.setBorder(new MarginBorder(0, 0, 0, DrawUtils.SHADOW_SIZE) {

        public void paint(IFigure f, Graphics g, Insets i) {
            g.pushState();
            Rectangle r = getPaintRectangle(f, i);
            DrawUtils.drawShadowBorder(g, r, false);
            g.popState();
        }
    });
    return f;
}
Also used : Graphics(org.eclipse.draw2d.Graphics) Insets(org.eclipse.draw2d.geometry.Insets) MenuActionsFigure(org.whole.lang.actions.ui.figures.MenuActionsFigure) MarginBorder(org.eclipse.draw2d.MarginBorder) Rectangle(org.eclipse.draw2d.geometry.Rectangle) IFigure(org.eclipse.draw2d.IFigure)

Aggregations

Graphics (org.eclipse.draw2d.Graphics)1 IFigure (org.eclipse.draw2d.IFigure)1 MarginBorder (org.eclipse.draw2d.MarginBorder)1 Insets (org.eclipse.draw2d.geometry.Insets)1 Rectangle (org.eclipse.draw2d.geometry.Rectangle)1 MenuActionsFigure (org.whole.lang.actions.ui.figures.MenuActionsFigure)1