public class CompositeRouter extends java.lang.Object implements LinkRouter
| Constructor and Description |
|---|
CompositeRouter()
Initializes a new instance of the CompositeRouter class.
|
CompositeRouter(Diagram diagram)
Initializes a new instance of the CompositeRouter class.
|
| Modifier and Type | Method and Description |
|---|---|
Diagram |
getDiagram()
Gets the Diagram whose links will be routed.
|
java.lang.Double |
getMinLinkSpacing()
Gets the minimal spacing between links when distributing.
|
java.util.List<LinkRouter> |
getRouters()
Gets a list of router objects forming a chain through which
links pass until they are routed successfully.
|
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.
|
void |
setMinLinkSpacing(java.lang.Double value)
Sets the minimal spacing between links when distributing.
|
void |
setRouters(java.util.List<LinkRouter> value)
Sets a list of router objects forming a chain through which
links pass until they are routed successfully.
|
public CompositeRouter()
public CompositeRouter(Diagram diagram)
diagram - The Diagram whose links will be routed.public java.util.List<LinkRouter> getRouters()
public void setRouters(java.util.List<LinkRouter> value)
value - A Listpublic 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 java.lang.Double getMinLinkSpacing()
public void setMinLinkSpacing(java.lang.Double value)
value - A Double instance.public Diagram getDiagram()
public void setDiagram(Diagram value)
setDiagram in interface LinkRoutervalue - A Diagram instance.