Search in sources :

Example 1 with AbstractCompositePart

use of org.whole.lang.ui.editparts.AbstractCompositePart in project whole by wholeplatform.

the class WorkflowsDiagramPartFactoryVisitor method visit.

public void visit(FlowObjects entity) {
    if (context instanceof ParallelPart)
        part = new AbstractCompositePart() {

            protected IFigure createFigure() {
                CompositeFigure f = new CompositeFigure(true);
                f.getLayoutManager().withMinorAlignment(Alignment.LEADING);
                return f;
            }
        };
    else
        part = new AbstractCompositePart() {

            protected IFigure createFigure() {
                CompositeFigure f = new CompositeFigure(false);
                f.getLayoutManager().withSpacing(7).withMinorAlignment(Alignment.CENTER);
                return f;
            }
        };
}
Also used : CompositeFigure(org.whole.lang.ui.figures.CompositeFigure) AbstractCompositePart(org.whole.lang.ui.editparts.AbstractCompositePart)

Aggregations

AbstractCompositePart (org.whole.lang.ui.editparts.AbstractCompositePart)1 CompositeFigure (org.whole.lang.ui.figures.CompositeFigure)1