|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.router.polyline.PathSearchResult
public class PathSearchResult
Manages the best Path
s found for each edge and provides according EdgeInfo
s.
These are used by the ChannelBasedPathRouting
algorithm to calculate the final segment locations for the
segments of an edge path.
Constructor Summary | |
---|---|
PathSearchResult(PathSearchConfiguration configuration)
Creates a new instance. |
Method Summary | |
---|---|
EdgeInfo |
getEdgeInfo(Edge edge)
Returns an EdgeInfo for the given edge. |
EdgeInfo |
getEdgeInfo(Path path)
Returns an EdgeInfo for the given path. |
Path |
getPath(Edge edge)
Returns the earlier registered found path for the edge. |
void |
setPath(Edge edge,
Path path)
Sets a found path for an edge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathSearchResult(PathSearchConfiguration configuration)
configuration
- The configuration used for the path search.Method Detail |
---|
public EdgeInfo getEdgeInfo(Path path)
EdgeInfo
for the given path.
If no EdgeInfo
has been created for this path by this context before, a new one is instantiated,
otherwise the stored one is returned.
path
- The path to return the EdgeInfo
for.
EdgeInfo
describing this path.public EdgeInfo getEdgeInfo(Edge edge)
EdgeInfo
for the given edge.
If the given edge shall be routed but no path has been set for, yet, null
is returned.
If no EdgeInfo
has been created for the path by this context before, a new one is instantiated,
otherwise the stored one is returned.
edge
- The edge to return the EdgeInfo
.
EdgeInfo
describing this the path of the edge.setPath(y.base.Edge, Path)
public void setPath(Edge edge, Path path)
edge
- The edge to set the path for.path
- The found path.public Path getPath(Edge edge)
edge
- The edge to provide the found path for.
null
, if no path has been registered, yet.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |