public class GridRouter extends java.lang.Object implements LinkRouter
| Constructor and Description |
|---|
GridRouter() |
| Modifier and Type | Method and Description |
|---|---|
Diagram |
getDiagram()
Gets the Diagram whose links will be routed.
|
boolean |
routeLink(DiagramLink link,
ConnectionPoint originConnection,
ConnectionPoint destinationConnection,
boolean nowCreating)
Implements LinkRouter.routeLink.
|
DiagramLinkList |
routeLinks(DiagramLinkList links)
Implements LinkRouter.routeLinks.
|
void |
setDiagram(Diagram value)
Sets the Diagram whose links will be routed.
|
public boolean routeLink(DiagramLink link, ConnectionPoint originConnection, ConnectionPoint destinationConnection, boolean nowCreating)
routeLink in interface LinkRouterlink - The DiagramLink to route.originConnection - Represents connection to Origin node, potentially
different from link's stored connection when modifying first control point.destinationConnection - Represents connection to Destination node, potentially
different from link's stored connection when modifying last control point.nowCreating - Indicates whether link is currently being created.public DiagramLinkList routeLinks(DiagramLinkList links)
routeLinks in interface LinkRouterlinks - A list of DiagramLink objects that should be routed.public Diagram getDiagram()
public void setDiagram(Diagram value)
setDiagram in interface LinkRoutervalue - A Diagram instance.