Search in sources :

Example 1 with InfixExpressionFigure

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

the class RemainderPart method refreshPrecedence.

protected void refreshPrecedence(IEntity exp, IEntity exp1, IEntity exp2) {
    InfixExpressionFigure fig = (InfixExpressionFigure) getFigure();
    fig.showLeftParen(OperatorGroupEnum.hasPrecedence(exp, exp1));
    fig.showRightParen(OperatorGroupEnum.hasPrecedence(exp, exp2));
}
Also used : InfixExpressionFigure(org.whole.lang.math.ui.figures.InfixExpressionFigure)

Example 2 with InfixExpressionFigure

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

the class SubtractionPart method refreshPrecedence.

protected void refreshPrecedence(IEntity exp, IEntity exp1, IEntity exp2) {
    InfixExpressionFigure fig = (InfixExpressionFigure) getFigure();
    fig.showLeftParen(OperatorGroupEnum.hasPrecedence(exp, exp1));
    fig.showRightParen(OperatorGroupEnum.hasPrecedence(exp, exp2));
}
Also used : InfixExpressionFigure(org.whole.lang.math.ui.figures.InfixExpressionFigure)

Example 3 with InfixExpressionFigure

use of org.whole.lang.math.ui.figures.InfixExpressionFigure 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)

Aggregations

InfixExpressionFigure (org.whole.lang.math.ui.figures.InfixExpressionFigure)3 RoundBracketsBorder (org.whole.lang.ui.figures.RoundBracketsBorder)1