use of org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure in project statecharts by Yakindu.
the class FixedSizeShapeNodeEditPart method createNodeFigure.
@Override
protected NodeFigure createNodeFigure() {
final NodeFigure figure = new DefaultSizeNodeFigure(getDefaultSize());
figure.setLayoutManager(getLayoutManager());
figure.add(createPrimaryShape());
return figure;
}
use of org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure in project statecharts by Yakindu.
the class StateEditPart method createNodeFigure.
@Override
protected NodeFigure createNodeFigure() {
NodeFigure figure = new DefaultSizeNodeFigure(getDefaultSize()) {
@Override
public // StateFigure is drawed smaller (Blurshadow size)
Rectangle getHandleBounds() {
Insets insets = new Insets(0, 0, StateFigure.BLUR_SHADOW_WIDTH, StateFigure.BLUR_SHADOW_WIDTH);
return new Rectangle(getBounds().x + insets.left, getBounds().y + insets.top, getBounds().width - (insets.right + insets.left), getBounds().height - (insets.bottom + insets.top));
}
};
figure.setLayoutManager(new StackLayout());
figure.setMinimumSize(getDefaultSize());
figure.add(createPrimaryShape());
return figure;
}
use of org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure 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;
}
Aggregations