Search in sources :

Example 1 with OverColumnLayout

use of org.whole.lang.ui.layout.OverColumnLayout in project whole by wholeplatform.

the class SplitPart method createFigure.

protected IFigure createFigure() {
    IFigure f = new EntityFigure(new OverColumnLayout().withSpacing(4).withMinorAlignment(// CENTER).withAutoresizeWeight(1f));
    Alignment.FILL));
    f.setBorder(new PipeBracketsBorder(0, 1, 0, 1));
    return f;
}
Also used : PipeBracketsBorder(org.whole.lang.ui.figures.PipeBracketsBorder) EntityFigure(org.whole.lang.ui.figures.EntityFigure) OverColumnLayout(org.whole.lang.ui.layout.OverColumnLayout) IFigure(org.eclipse.draw2d.IFigure)

Example 2 with OverColumnLayout

use of org.whole.lang.ui.layout.OverColumnLayout in project whole by wholeplatform.

the class BlockPart method createFigure.

protected IFigure createFigure() {
    IFigure figure = new // StringSeparatedCompositeColumnFigure("",
    CompositeFigure(new OverColumnLayout().withMarginTop(5).withMarginBottom(5).withSpacing(13));
    figure.setBorder(new BlockBracketsBorder());
    return figure;
}
Also used : CompositeFigure(org.whole.lang.ui.figures.CompositeFigure) OverColumnLayout(org.whole.lang.ui.layout.OverColumnLayout) BlockBracketsBorder(org.whole.lang.queries.ui.figures.BlockBracketsBorder) IFigure(org.eclipse.draw2d.IFigure)

Aggregations

IFigure (org.eclipse.draw2d.IFigure)2 OverColumnLayout (org.whole.lang.ui.layout.OverColumnLayout)2 BlockBracketsBorder (org.whole.lang.queries.ui.figures.BlockBracketsBorder)1 CompositeFigure (org.whole.lang.ui.figures.CompositeFigure)1 EntityFigure (org.whole.lang.ui.figures.EntityFigure)1 PipeBracketsBorder (org.whole.lang.ui.figures.PipeBracketsBorder)1