use of org.eclipse.draw2d.FreeformLayout in project cubrid-manager by CUBRID.
the class DiagramPart method createFigure.
/**
* @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
* @return figure
*/
protected IFigure createFigure() {
Figure figure = new FreeformLayer();
figure.setLayoutManager(new FreeformLayout());
return figure;
}
use of org.eclipse.draw2d.FreeformLayout in project cubrid-manager by CUBRID.
the class DashboardPart method createFigure.
/**
* create a new figure used by DashboardPart
*
* @return FreeformLayer with FreeformLayout
*/
protected IFigure createFigure() {
Figure figure = new FreeformLayer();
figure.setLayoutManager(new FreeformLayout());
return figure;
}
use of org.eclipse.draw2d.FreeformLayout in project tdi-studio-se by Talend.
the class ProcessPart method createFigure.
/*
* (non-Javadoc)
*
* @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
*/
@Override
protected IFigure createFigure() {
Figure figure = new FreeformLayer();
figure.setLayoutManager(new FreeformLayout());
fig2 = new FreeformLayer();
getLayer(TalendScalableFreeformRootEditPart.PROCESS_BACKGROUND_LAYER).add(fig2);
ajustReadOnly();
// connLayer.setConnectionRouter(new NullRouter());
return figure;
}
use of org.eclipse.draw2d.FreeformLayout in project webtools.sourceediting by eclipse.
the class BaseDragAndDropCommand method getFeedbackFigure.
public IFigure getFeedbackFigure() {
Figure panel = new Figure();
panel.setLayoutManager(new FreeformLayout());
panel.setOpaque(false);
Polyline feedbackFigure = new Polyline();
feedbackFigure.setLineWidth(2);
drawLines(feedbackFigure);
originalLocation = new Rectangle(feedbackFigure.getBounds());
panel.add(feedbackFigure);
polyLine = new Polyline();
polyLine.setLineStyle(Graphics.LINE_DASHDOT);
polyLine.setLineWidth(1);
panel.add(polyLine);
panel.setBounds(originalLocation);
addConnectorToParent(panel);
if (parentEditPart != null && parentEditPart.getFigure() instanceof GenericGroupFigure) {
GenericGroupFigure fig = (GenericGroupFigure) parentEditPart.getFigure();
Rectangle iconBounds = getZoomedBounds(fig.getIconFigure().getBounds());
RoundedRectangle roundedRectangle = new RoundedRectangle();
roundedRectangle.setFill(false);
roundedRectangle.setOpaque(true);
// roundedRectangle.setBounds(new Rectangle(iconBounds.x, iconBounds.y, iconBounds.width - 1, iconBounds.height - 1));
roundedRectangle.setBounds(iconBounds);
panel.add(roundedRectangle);
}
return panel;
}
use of org.eclipse.draw2d.FreeformLayout in project archi by archimatetool.
the class AbstractDiagramPart method createFigure.
@Override
protected IFigure createFigure() {
FreeformLayer figure = new FreeformLayer();
// Provide an edge when in negative space
// Causes snap to grid problems when in negative space
figure.setBorder(new MarginBorder(5));
figure.setLayoutManager(new FreeformLayout());
// Have to add this if we want Animation to work on figures!
AnimationUtil.addFigureForAnimation(figure);
// Anti-aliasing
setAntiAlias();
return figure;
}
Aggregations