|
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
This class 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 of PathSearchResult . |
Method Summary | |
---|---|
EdgeInfo |
getEdgeInfo(Edge edge)
Returns an EdgeInfo for the given edge. |
Path |
getPath(Edge edge)
Returns the previously registered path found for the edge. |
void |
setPath(Edge edge,
Path path)
Specifies 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)
PathSearchResult
.
configuration
- the configuration used for the path searchMethod Detail |
---|
public EdgeInfo getEdgeInfo(Edge edge)
EdgeInfo
for the given edge.
If the given edge shall be routed but no path has been set for it, 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 for which the EdgeInfo
will be returned
EdgeInfo
describing the path of the edgesetPath(Edge, Path)
public void setPath(Edge edge, Path path)
edge
- the edge for which the path is setpath
- the found pathpublic Path getPath(Edge edge)
edge
- the edge for which the path is provided
null
if no path has been registered, yet
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |