Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.ShortestPathConnectionRouter


        }

        // Update connection router according to new model size
        ConnectionRouter router;
        if ( (isNewDiagram && newGraph.getChildren().size() < SIMPLE_ROUTER_MIN_NODES) || (!isNewDiagram && getModel().getChildren().size() < SIMPLE_ROUTER_MIN_NODES) ) {
            router = new ShortestPathConnectionRouter( (IFigure) rootEditPart.getContentPane().getChildren().get( 0 ) );
        } else {
            router = ConnectionRouter.NULL;
        }
        connLayer.setConnectionRouter( router );
View Full Code Here


    ConnectionLayer cLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
    cLayer.setAntialias(SWT.ON);

    FanRouter fanRouter = new FanRouter();
    fanRouter.setSeparation(20);
    ShortestPathConnectionRouter router = new ShortestPathConnectionRouter(f);
    fanRouter.setNextRouter(router);
    cLayer.setConnectionRouter(fanRouter);
    return f;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.ShortestPathConnectionRouter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.