com.mindfusion.diagramming
Class GridRouter

java.lang.Object
  extended by com.mindfusion.diagramming.GridRouter
All Implemented Interfaces:
LinkRouter

public class GridRouter
extends java.lang.Object
implements LinkRouter

Implements a link routing algorithm that uses a grid to represent the free and occupied regions in the diagram.


Constructor Summary
GridRouter()
           
 
Method Summary
 void Resume(boolean routeDeferredLinks)
          Implements ILinkRouter.Resume.
 boolean RouteLink(DiagramLink link)
          Implements ILinkRouter.RouteLink.
 void RouteLinks(DiagramLinkList links)
          Implements ILinkRouter.RouteLinks.
 void Suspend()
          Implements ILinkRouter.Suspend.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridRouter

public GridRouter()
Method Detail

RouteLink

public boolean RouteLink(DiagramLink link)
Implements ILinkRouter.RouteLink.

Specified by:
RouteLink in interface LinkRouter
Parameters:
link - The DiagramLink to route.
Returns:
true if a path has been found successfully, otherwise false.

RouteLinks

public void RouteLinks(DiagramLinkList links)
Implements ILinkRouter.RouteLinks.

Specified by:
RouteLinks in interface LinkRouter
Parameters:
links - A list of DiagramLink objects that should be routed.

Suspend

public void Suspend()
Implements ILinkRouter.Suspend.

Specified by:
Suspend in interface LinkRouter

Resume

public void Resume(boolean routeDeferredLinks)
Implements ILinkRouter.Resume.

Specified by:
Resume in interface LinkRouter
Parameters:
routeDeferredLinks -