public final class Path
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
DiagramItemList |
getItems()
Gets a list of all nodes and links in the path.
|
int |
getLength()
Gets the number of links in the path.
|
DiagramLinkList |
getLinks()
Gets a list of all links in the path.
|
DiagramNodeList |
getNodes()
Gets a list of all nodes in the path.
|
float |
getWeight(boolean includeNodes,
boolean includeLinks)
Gets the total weight of this path.
|
public DiagramNodeList getNodes()
DiagramNodeList containing the path nodes.public DiagramLinkList getLinks()
DiagramLinkList containing the path links.public DiagramItemList getItems()
DiagramItemList containing the path nodes and links.public int getLength()
public float getWeight(boolean includeNodes,
boolean includeLinks)
includeNodes - true to include node weights in the
total weight sum, otherwise false.includeLinks - true to include link weights in the
total weight sum, otherwise false.