Search in sources :

Example 6 with RoundBracketsBorder

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

the class ProductTypePart method createFigure.

protected IFigure createFigure() {
    StringSeparatedCompositeColumnFigure f = new StringSeparatedCompositeColumnFigure();
    f.setBorder(new RoundBracketsBorder());
    return f;
}
Also used : StringSeparatedCompositeColumnFigure(org.whole.lang.ui.figures.StringSeparatedCompositeColumnFigure) RoundBracketsBorder(org.whole.lang.ui.figures.RoundBracketsBorder)

Example 7 with RoundBracketsBorder

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

the class InValueListPart method createFigure.

protected IFigure createFigure() {
    IFigure figure = new StringSeparatedCompositeRowFigure(",", 10);
    figure.setBorder(new RoundBracketsBorder());
    return figure;
}
Also used : StringSeparatedCompositeRowFigure(org.whole.lang.ui.figures.StringSeparatedCompositeRowFigure) RoundBracketsBorder(org.whole.lang.ui.figures.RoundBracketsBorder) IFigure(org.eclipse.draw2d.IFigure)

Example 8 with RoundBracketsBorder

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

the class ContentLighterDataEntityPartWithRoundBrackets method createFigure.

public IFigure createFigure() {
    IFigure f = super.createFigure();
    f.setBorder(new RoundBracketsBorder() {

        @Override
        protected void setBracketsStyle(Graphics g) {
            g.setForegroundColor(FigureConstants.contentLighterColor);
        }
    });
    return f;
}
Also used : Graphics(org.eclipse.draw2d.Graphics) RoundBracketsBorder(org.whole.lang.ui.figures.RoundBracketsBorder) IFigure(org.eclipse.draw2d.IFigure)

Example 9 with RoundBracketsBorder

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

the class OrderedPairPart method createFigure.

protected IFigure createFigure() {
    InfixExpressionFigure f = new InfixExpressionFigure(",");
    f.setBorder(new RoundBracketsBorder());
    return f;
}
Also used : InfixExpressionFigure(org.whole.lang.math.ui.figures.InfixExpressionFigure) RoundBracketsBorder(org.whole.lang.ui.figures.RoundBracketsBorder)

Example 10 with RoundBracketsBorder

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

the class TuplePart method createFigure.

protected IFigure createFigure() {
    StringSeparatedCompositeRowFigure f = new StringSeparatedCompositeRowFigure();
    f.setBorder(new RoundBracketsBorder());
    return f;
}
Also used : StringSeparatedCompositeRowFigure(org.whole.lang.ui.figures.StringSeparatedCompositeRowFigure) RoundBracketsBorder(org.whole.lang.ui.figures.RoundBracketsBorder)

Aggregations

RoundBracketsBorder (org.whole.lang.ui.figures.RoundBracketsBorder)10 Graphics (org.eclipse.draw2d.Graphics)4 IFigure (org.eclipse.draw2d.IFigure)4 CompositeFigure (org.whole.lang.ui.figures.CompositeFigure)3 StringSeparatedCompositeColumnFigure (org.whole.lang.ui.figures.StringSeparatedCompositeColumnFigure)3 StringSeparatedCompositeRowFigure (org.whole.lang.ui.figures.StringSeparatedCompositeRowFigure)2 InfixExpressionFigure (org.whole.lang.math.ui.figures.InfixExpressionFigure)1