use of org.eclipse.draw2d.FreeformLayout in project tdi-studio-se by Talend.
the class ErDiagramPart 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(ErDiagramRootEditPart.PROCESS_BACKGROUND_LAYER).add(fig2);
return figure;
}
use of org.eclipse.draw2d.FreeformLayout in project tdi-studio-se by Talend.
the class SubjobContainerPart method createFigure.
/*
* (non-Javadoc)
*
* @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
*/
@Override
protected IFigure createFigure() {
SubjobContainer container = (SubjobContainer) this.getModel();
Boolean isDisplaySubjobs = (container).isDisplayed();
if (!isDisplaySubjobs) {
Figure figure = new FreeformLayer();
figure.setLayoutManager(new FreeformLayout());
return figure;
}
IProcess2 process = container.getProcess();
//$NON-NLS-1$
Object obj = process.getAdditionalProperties().get("FRAMEWORK");
SubjobContainerFigure subjobContainer = null;
if ("Spark Streaming".equals(obj) && !(process.getProperty().getItem() instanceof JobletProcessItem)) {
//$NON-NLS-1$
subjobContainer = new SparkStreamingSubjobContainerFigure(container);
} else {
subjobContainer = new SubjobContainerFigure(container);
}
return subjobContainer;
}
use of org.eclipse.draw2d.FreeformLayout in project yamcs-studio by yamcs.
the class DisplayEditpart method doCreateFigure.
@Override
protected IFigure doCreateFigure() {
Figure f = new FreeformLayer() {
@Override
protected void paintFigure(Graphics graphics) {
super.paintFigure(graphics);
if (getExecutionMode() == ExecutionMode.EDIT_MODE && ((DisplayModel) getModel()).isShowEditRange()) {
graphics.pushState();
graphics.setLineStyle(SWT.LINE_DASH);
graphics.setForegroundColor(ColorConstants.black);
graphics.drawRectangle(new Rectangle(new Point(0, 0), getWidgetModel().getSize()));
graphics.popState();
}
}
};
// f.setBorder(new MarginBorder(3));
f.setLayoutManager(new FreeformLayout());
return f;
}
use of org.eclipse.draw2d.FreeformLayout in project jbosstools-hibernate by jbosstools.
the class DiagramEditPart method createFigure.
protected IFigure createFigure() {
Figure f = new FreeformLayer();
f.setBorder(new MarginBorder(3));
f.setLayoutManager(new FreeformLayout());
if (isManhattanConnectionRouter()) {
getOrmDiagram().setupFanConnectionRouter();
setupManhattanConnectionRouter();
} else {
getOrmDiagram().setupManhattanConnectionRouter();
setupFanConnectionRouter();
}
return f;
}
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;
}
Aggregations