public interface LinkRouter
Modifier and Type | Method and Description |
---|---|
boolean |
routeLink(DiagramLink link,
ConnectionPoint originConnection,
ConnectionPoint destinationConnection,
boolean nowCreating)
Called when a single link must be routed.
|
DiagramLinkList |
routeLinks(DiagramLinkList links)
Called when more than one links must be routed.
|
void |
setDiagram(Diagram value)
Sets the diagram this router is associated with.
|
boolean routeLink(DiagramLink link, ConnectionPoint originConnection, ConnectionPoint destinationConnection, boolean nowCreating)
link
- A DiagramLink object representing the link.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.DiagramLinkList routeLinks(DiagramLinkList links)
links
- A DiagramLinkList containing the links that should be routed.void setDiagram(Diagram value)
value
- A Diagram instance.