Packagecom.yworks.yfiles.layout.router.polyline
Classpublic class PathSearchResult
InheritancePathSearchResult Inheritance YObject Inheritance Object

Manages the best com.yworks.yfiles.layout.router.polyline.Path s found for each edge and provides according com.yworks.yfiles.layout.router.polyline.EdgeInfo s. These are used by the com.yworks.yfiles.layout.router.polyline.ChannelBasedPathRouting algorithm to calculate the final segment locations for the segments of an edge path.

See also

com.yworks.yfiles.layout.router.polyline.Path
com.yworks.yfiles.layout.router.polyline.EdgeInfo
com.yworks.yfiles.layout.router.polyline.ChannelBasedPathRouting


Public Methods
 MethodDefined By
  
PathSearchResult(configuration:PathSearchConfiguration, init:Boolean = true)
Creates a new instance.
PathSearchResult
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
PathSearchResult
  
Returns an com.yworks.yfiles.layout.router.polyline.EdgeInfo for the given path.
PathSearchResult
  
Returns an com.yworks.yfiles.layout.router.polyline.EdgeInfo for the given edge.
PathSearchResult
  
Returns the earlier registered found path for the edge.
PathSearchResult
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance.
PathSearchResult
  
setPath(edge:Edge, path:Path):void
Sets a found path for an edge.
PathSearchResult
Protected Methods
 MethodDefined By
  
Initializes this object.
PathSearchResult
Constructor Detail
PathSearchResult()Constructor
public function PathSearchResult(configuration:PathSearchConfiguration, init:Boolean = true)

Creates a new instance.

Parameters
configuration:PathSearchConfiguration — The configuration used for the path search.
 
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.
Method Detail
getClass()method
override public function getClass():Class

Returns
Class
getEdgeInfo()method 
public function getEdgeInfo(path:Path):EdgeInfo

Returns an com.yworks.yfiles.layout.router.polyline.EdgeInfo for the given path.

If no com.yworks.yfiles.layout.router.polyline.EdgeInfo has been created for this path by this context before, a new one is instantiated, otherwise the stored one is returned.

Parameters

path:Path — The path to return the com.yworks.yfiles.layout.router.polyline.EdgeInfo for.

Returns
EdgeInfo — An com.yworks.yfiles.layout.router.polyline.EdgeInfo describing this path.

See also

getEdgeInfo2()method 
public function getEdgeInfo2(edge:Edge):EdgeInfo

Returns an com.yworks.yfiles.layout.router.polyline.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 com.yworks.yfiles.layout.router.polyline.EdgeInfo has been created for the path by this context before, a new one is instantiated, otherwise the stored one is returned.

Parameters

edge:Edge — The edge to return the com.yworks.yfiles.layout.router.polyline.EdgeInfo.

Returns
EdgeInfo — An com.yworks.yfiles.layout.router.polyline.EdgeInfo describing this the path of the edge.

See also

getPath()method 
public function getPath(edge:Edge):Path

Returns the earlier registered found path for the edge.

Parameters

edge:Edge — The edge to provide the found path for.

Returns
Path — The earlier registered found path for the edge or null, if no path has been registered, yet.
initPathSearchResult()method 
protected final function initPathSearchResult(configuration:PathSearchConfiguration):void

Initializes this object. See the documentation of the corresponding factory method newPathSearchResult() for details.

Parameters

configuration:PathSearchConfiguration

See also

newPathSearchResult()method 
public static function newPathSearchResult(configuration:PathSearchConfiguration):PathSearchResult

Creates a new instance.

Parameters

configuration:PathSearchConfiguration — The configuration used for the path search.

Returns
PathSearchResult
setPath()method 
public function setPath(edge:Edge, path:Path):void

Sets a found path for an edge.

Parameters

edge:Edge — The edge to set the path for.
 
path:Path — The found path.