com.googlecode.sarasvati.visual.common
Class ShortestPathRouterAdapter
java.lang.Object
com.googlecode.sarasvati.visual.common.ShortestPathRouterAdapter
- All Implemented Interfaces:
- org.netbeans.api.visual.router.Router
public class ShortestPathRouterAdapter
- extends Object
- implements org.netbeans.api.visual.router.Router
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scene
protected GraphSceneImpl<?,?> scene
router
protected org.eclipse.draw2d.graph.ShortestPathRouter router
widgetMap
protected Map<org.netbeans.api.visual.widget.Widget,ShortestPathRouterAdapter.WidgetBoundsTracker> widgetMap
ShortestPathRouterAdapter
public ShortestPathRouterAdapter(GraphSceneImpl<?,?> scene,
int spacing)
setAdjacentLineSpacing
public void setAdjacentLineSpacing(int spacing)
addNodeWidget
public void addNodeWidget(org.netbeans.api.visual.widget.Widget w)
removeNodeWidget
public void removeNodeWidget(org.netbeans.api.visual.widget.Widget w)
sceneValidated
public void sceneValidated()
addPath
public void addPath(org.eclipse.draw2d.graph.Path path,
boolean isSelfArc)
removePath
public void removePath(org.eclipse.draw2d.graph.Path path)
updateRoutes
public void updateRoutes()
routeConnection
public List<Point> routeConnection(org.netbeans.api.visual.widget.ConnectionWidget conn)
- Specified by:
routeConnection in interface org.netbeans.api.visual.router.Router
Copyright © 2012. All Rights Reserved.