Search in sources :

Example 21 with ConnectionLayer

use of org.eclipse.draw2d.ConnectionLayer in project jbosstools-hibernate by jbosstools.

the class DiagramEditPart method setupManhattanConnectionRouter.

public void setupManhattanConnectionRouter() {
    ConnectionLayer connLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
    connLayer.setConnectionRouter(new ManhattanConnectionRouter());
    getOrmDiagram().setupManhattanConnectionRouter();
}
Also used : ManhattanConnectionRouter(org.eclipse.draw2d.ManhattanConnectionRouter) ConnectionLayer(org.eclipse.draw2d.ConnectionLayer)

Aggregations

ConnectionLayer (org.eclipse.draw2d.ConnectionLayer)21 FanRouter (org.eclipse.draw2d.FanRouter)5 ArrayList (java.util.ArrayList)3 BendpointConnectionRouter (org.eclipse.draw2d.BendpointConnectionRouter)3 FreeformLayer (org.eclipse.draw2d.FreeformLayer)3 FreeformLayeredPane (org.eclipse.draw2d.FreeformLayeredPane)3 ManhattanConnectionRouter (org.eclipse.draw2d.ManhattanConnectionRouter)3 ShortestPathConnectionRouter (org.eclipse.draw2d.ShortestPathConnectionRouter)3 Control (org.eclipse.swt.widgets.Control)3 WidgetEditPartFactory (org.csstudio.opibuilder.editparts.WidgetEditPartFactory)2 AutomaticRouter (org.eclipse.draw2d.AutomaticRouter)2 IFigure (org.eclipse.draw2d.IFigure)2 Layer (org.eclipse.draw2d.Layer)2 LayeredPane (org.eclipse.draw2d.LayeredPane)2 ScalableFreeformLayeredPane (org.eclipse.draw2d.ScalableFreeformLayeredPane)2 StackLayout (org.eclipse.draw2d.StackLayout)2 Dimension (org.eclipse.draw2d.geometry.Dimension)2 ContextMenuProvider (org.eclipse.gef.ContextMenuProvider)2 ScalableFreeformRootEditPart (org.eclipse.gef.editparts.ScalableFreeformRootEditPart)2 ScrollingGraphicalViewer (org.eclipse.gef.ui.parts.ScrollingGraphicalViewer)2