Search in sources :

Example 1 with SynchronizationFigure

use of org.yakindu.sct.ui.editor.editor.figures.SynchronizationFigure in project statecharts by Yakindu.

the class SynchronizationEditPart method createNodeFigure.

@Override
protected NodeFigure createNodeFigure() {
    final DefaultSizeNodeFigure nodeFigure = new DefaultSizeNodeFigure(getMapMode().DPtoLP(DEFAULT_WIDTH), getMapMode().DPtoLP(DEFAULT_HEIGHT));
    nodeFigure.setLayoutManager(new StackLayout());
    nodeFigure.add(new SynchronizationFigure(getMapMode()));
    nodeFigure.setForegroundColor(ColorConstants.black);
    nodeFigure.setBackgroundColor(ColorConstants.black);
    return nodeFigure;
}
Also used : DefaultSizeNodeFigure(org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure) StackLayout(org.eclipse.draw2d.StackLayout) SynchronizationFigure(org.yakindu.sct.ui.editor.editor.figures.SynchronizationFigure)

Aggregations

StackLayout (org.eclipse.draw2d.StackLayout)1 DefaultSizeNodeFigure (org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure)1 SynchronizationFigure (org.yakindu.sct.ui.editor.editor.figures.SynchronizationFigure)1