use of org.eclipse.draw2d.ConnectionLayer in project tdi-studio-se by Talend.
the class ErDiagramRootEditPart method createPrintableLayers.
@Override
protected LayeredPane createPrintableLayers() {
FreeformLayeredPane layeredPane = new FreeformLayeredPane();
layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
return layeredPane;
}
use of org.eclipse.draw2d.ConnectionLayer in project tdi-studio-se by Talend.
the class TalendScalableFreeformRootEditPart method createPrintableLayers.
@Override
protected LayeredPane createPrintableLayers() {
FreeformLayeredPane layeredPane = new FreeformLayeredPane();
layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
return layeredPane;
}
use of org.eclipse.draw2d.ConnectionLayer in project dbeaver by dbeaver.
the class LockGraphEditPart method refreshVisuals.
@Override
protected void refreshVisuals() {
ConnectionLayer connectionLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
connectionLayer.setConnectionRouter(new ShortestPathConnectionRouter(getFigure()));
}
use of org.eclipse.draw2d.ConnectionLayer in project knime-core by knime.
the class WorkflowRootEditPart method refreshVisuals.
/**
* {@inheritDoc}
*/
@Override
protected void refreshVisuals() {
ConnectionLayer cLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
if (cLayer != null) {
EditPartViewer viewer = getViewer();
if (viewer != null) {
Control c = viewer.getControl();
if ((c != null) && ((c.getStyle() & SWT.MIRRORED) == 0)) {
cLayer.setAntialias(SWT.ON);
}
}
}
super.refreshVisuals();
}
use of org.eclipse.draw2d.ConnectionLayer in project archi by archimatetool.
the class AbstractDiagramPart method refreshVisuals.
@Override
public void refreshVisuals() {
// on the connection figures - see AbstractConnectionFigure
if (AnimationUtil.doAnimate()) {
Animation.markBegin();
}
ConnectionLayer cLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
switch(getModel().getConnectionRouterType()) {
case IDiagramModel.CONNECTION_ROUTER_MANHATTAN:
cLayer.setConnectionRouter(new ManhattanConnectionRouter());
break;
case IDiagramModel.CONNECTION_ROUTER_BENDPOINT:
default:
AutomaticRouter router = new FanRouter();
router.setNextRouter(new BendpointConnectionRouter());
cLayer.setConnectionRouter(router);
break;
}
if (AnimationUtil.doAnimate()) {
Animation.run(AnimationUtil.animationSpeed());
}
}
Aggregations