Package | com.yworks.yfiles.layout.router.polyline |
Class | public class EdgeInfo |
Inheritance | EdgeInfo YObject Object |
See also
Property | Defined By | ||
---|---|---|---|
edge : Edge [read-only]
Returns the edge whose route is described by this info. | EdgeInfo | ||
edgeCellInfos : List [read-only]
Returns a list of com.yworks.yfiles.layout.router.polyline.EdgeCellInfo s describing how the edge traverses each com.yworks.yfiles.layout.router.polyline.PartitionCell on its path. | EdgeInfo | ||
fixed : Boolean [read-only]
Determines whether the path of this edge (edge) is fixed or shall be routed by the path search algorithm. | EdgeInfo | ||
strongSourcePort : YPoint
Getter:
Returns the location of the strong source port the edge uses. | EdgeInfo | ||
strongTargetPort : YPoint
Getter:
Returns the location of the strong target port the edge uses. | EdgeInfo |
Method | Defined By | ||
---|---|---|---|
Creates a new instance. | EdgeInfo | ||
calculateLineSegments():Vector.<Object>
Returns an array of com.yworks.yfiles.geom.LineSegment s created from the calculated path points (calculatePathPoints()). | EdgeInfo | ||
Returns a list of com.yworks.yfiles.geom.YPoint s containing the source port, bend and target port locations. | EdgeInfo | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | EdgeInfo | ||
Returns the com.yworks.yfiles.layout.router.polyline.EdgeCellInfo of the given com.yworks.yfiles.layout.router.polyline.CellEntrance in the path. | EdgeInfo | ||
Returns the segment info of the segment following the segment of the given segment info. | EdgeInfo | ||
Returns the segment info of the segment preceding the segment of the given segment info. | EdgeInfo | ||
getSegmentInfo(segmentIndex:int):SegmentInfo
Returns the segment info the the segment with the given index. | EdgeInfo | ||
hashCode():int | YObject | ||
[static]
Creates a new instance. | EdgeInfo | ||
segmentCount():int
Returns the number of segments of the edge. | EdgeInfo | ||
toString():String | EdgeInfo |
Method | Defined By | ||
---|---|---|---|
Initializes this object. | EdgeInfo |
edge | property |
edge:Edge
[read-only] Returns the edge whose route is described by this info.
public function get edge():Edge
edgeCellInfos | property |
edgeCellInfos:List
[read-only] Returns a list of com.yworks.yfiles.layout.router.polyline.EdgeCellInfo s describing how the edge traverses each com.yworks.yfiles.layout.router.polyline.PartitionCell on its path.
public function get edgeCellInfos():List
See also
fixed | property |
fixed:Boolean
[read-only] Determines whether the path of this edge (edge) is fixed or shall be routed by the path search algorithm.
public function get fixed():Boolean
See also
strongSourcePort | property |
strongSourcePort:YPoint
Getter: Returns the location of the strong source port the edge uses.
Setter: Sets the location of the strong source port the edge uses and updates the first com.yworks.yfiles.layout.router.polyline.SegmentInfo to use this fixed port location. public function get strongSourcePort():YPoint
public function set strongSourcePort(value:YPoint):void
IllegalArgumentException — If the first segment is already fixed and the given port location contradicts the segments fixed location.
|
See also
strongTargetPort | property |
strongTargetPort:YPoint
Getter: Returns the location of the strong target port the edge uses.
Setter: Sets the location of the strong target port the edge uses and updates the last com.yworks.yfiles.layout.router.polyline.SegmentInfo to use this fixed port location. public function get strongTargetPort():YPoint
public function set strongTargetPort(value:YPoint):void
IllegalArgumentException — If the last segment is already fixed and the given port location contradicts the segments fixed location.
|
See also
EdgeInfo | () | Constructor |
public function EdgeInfo(path:Path, configuration:PathSearchConfiguration, init:Boolean = true)
Creates a new instance.
Parameterspath:Path — The path that shall be used to route the edge.
| |
configuration:PathSearchConfiguration — The configuration of the path search algorithm.
| |
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.
|
calculateLineSegments | () | method |
public function calculateLineSegments():Vector.<Object>
Returns an array of com.yworks.yfiles.geom.LineSegment s created from the calculated path points (calculatePathPoints()).
ReturnsVector.<Object> — An array of LineSegment s created from the calculated path points.
|
See also
calculatePathPoints | () | method |
public function calculatePathPoints():YList
Returns a list of com.yworks.yfiles.geom.YPoint s containing the source port, bend and target port locations.
ReturnsYList — A list of YPoint s containing the source port, bend and target port locations.
|
See also
getClass | () | method |
override public function getClass():Class
ReturnsClass |
getEdgeCellInfo | () | method |
public function getEdgeCellInfo(entrance:CellEntrance):EdgeCellInfo
Returns the com.yworks.yfiles.layout.router.polyline.EdgeCellInfo of the given com.yworks.yfiles.layout.router.polyline.CellEntrance in the path.
Parameters
entrance:CellEntrance — The entrance to get the edge cell info for.
|
EdgeCellInfo — The EdgeCellInfo of the given CellEntrance in the path.
|
See also
getNextSegment | () | method |
public function getNextSegment(segment:SegmentInfo):SegmentInfo
Returns the segment info of the segment following the segment of the given segment info.
Parameters
segment:SegmentInfo — The segmentInfo for which the following segment info shall be returned.
|
SegmentInfo — The segment info of the segment following the segment of the given segment info.
|
getPreviousSegment | () | method |
public function getPreviousSegment(segment:SegmentInfo):SegmentInfo
Returns the segment info of the segment preceding the segment of the given segment info.
Parameters
segment:SegmentInfo — The segmentInfo for which the previous segment info shall be returned.
|
SegmentInfo — The segment info of the segment preceding the segment of the given segment info.
|
getSegmentInfo | () | method |
public function getSegmentInfo(segmentIndex:int):SegmentInfo
Returns the segment info the the segment with the given index.
Parameters
segmentIndex:int — The index of the edge segment to return the segment info for.
|
SegmentInfo — The segment info the the segment with the given index.
|
initEdgeInfo1 | () | method |
protected final function initEdgeInfo1(path:Path, configuration:PathSearchConfiguration):void
Initializes this object. See the documentation of the corresponding factory method newEdgeInfo1()
for details.
Parameters
path:Path | |
configuration:PathSearchConfiguration |
See also
newEdgeInfo1 | () | method |
public static function newEdgeInfo1(path:Path, configuration:PathSearchConfiguration):EdgeInfo
Creates a new instance.
Parameters
path:Path — The path that shall be used to route the edge.
| |
configuration:PathSearchConfiguration — The configuration of the path search algorithm.
|
EdgeInfo |
segmentCount | () | method |
public function segmentCount():int
Returns the number of segments of the edge.
Returnsint — The number of segments of the edge.
|
toString | () | method |
public function toString():String
ReturnsString |