com.googlecode.sarasvati.visual.common
Class ShortestPathRouterAdapter

java.lang.Object
  extended by 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


Nested Class Summary
 class ShortestPathRouterAdapter.WidgetBoundsTracker
           
 
Field Summary
protected  org.eclipse.draw2d.graph.ShortestPathRouter router
           
protected  GraphSceneImpl<?,?> scene
           
protected  Map<org.netbeans.api.visual.widget.Widget,ShortestPathRouterAdapter.WidgetBoundsTracker> widgetMap
           
 
Constructor Summary
ShortestPathRouterAdapter(GraphSceneImpl<?,?> scene, int spacing)
           
 
Method Summary
 void addNodeWidget(org.netbeans.api.visual.widget.Widget w)
           
 void addPath(org.eclipse.draw2d.graph.Path path, boolean isSelfArc)
           
 void removeNodeWidget(org.netbeans.api.visual.widget.Widget w)
           
 void removePath(org.eclipse.draw2d.graph.Path path)
           
 List<Point> routeConnection(org.netbeans.api.visual.widget.ConnectionWidget conn)
           
 void sceneValidated()
           
 void setAdjacentLineSpacing(int spacing)
           
 void updateRoutes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scene

protected GraphSceneImpl<?,?> scene

router

protected org.eclipse.draw2d.graph.ShortestPathRouter router

widgetMap

protected Map<org.netbeans.api.visual.widget.Widget,ShortestPathRouterAdapter.WidgetBoundsTracker> widgetMap
Constructor Detail

ShortestPathRouterAdapter

public ShortestPathRouterAdapter(GraphSceneImpl<?,?> scene,
                                 int spacing)
Method Detail

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.