use of org.eclipse.draw2d.FreeformLayer in project statecharts by Yakindu.
the class SCTRenderedDiagramRootEditPart method createLayers.
@Override
protected void createLayers(LayeredPane layeredPane) {
super.createLayers(layeredPane);
layeredPane.add(new FreeformLayer(), WATERMARK_LAYER);
}
use of org.eclipse.draw2d.FreeformLayer in project gemoc-studio by eclipse.
the class BranchEditPart method createFigure.
@Override
protected IFigure createFigure() {
final LineLayout layout = new LineLayout();
layout.setHorizontal(true);
layout.setMajorAlignment(FlowLayout.ALIGN_TOPLEFT);
layout.setMinorAlignment(FlowLayout.ALIGN_BOTTOMRIGHT);
layout.setMinorSpacing(SPACING);
layout.setMargin(MARGIN);
FreeformLayer res = new FreeformLayer();
final Label toolTip = new Label();
toolTip.setFont(JFaceResources.getFont(JFaceResources.TEXT_FONT));
toolTip.setBackgroundColor(ColorConstants.tooltipBackground);
toolTip.setForegroundColor(ColorConstants.tooltipForeground);
toolTip.setText(getModel().getTimelineWindow().getProvider().getTextAt(getModel().getBranch()));
res.setToolTip(toolTip);
res.setLayoutManager(layout);
return res;
}
use of org.eclipse.draw2d.FreeformLayer in project gemoc-studio by eclipse.
the class ChoiceEditPart method createFigure.
@Override
protected IFigure createFigure() {
final LineLayout layout = new LineLayout();
layout.setHorizontal(false);
layout.setMajorAlignment(FlowLayout.ALIGN_TOPLEFT);
layout.setMinorAlignment(FlowLayout.ALIGN_TOPLEFT);
layout.setMinorSpacing(SPACING);
FreeformLayer res = new FreeformLayer();
res.setLayoutManager(layout);
label = new Label();
res.add(label);
return res;
}
Aggregations