Package | com.yworks.yfiles.layout.router.polyline |
Class | public class SegmentInfo |
Inheritance | SegmentInfo AbstractSegmentInfo YObject Object |
Property | Defined By | ||
---|---|---|---|
atStrongPortConstraint : Boolean
Determines whether or not this edge segment has the restriction of a strong port constraint. | SegmentInfo | ||
direction : Direction [read-only]
Returns the direction the segment of this info points to. | AbstractSegmentInfo | ||
edge : Edge [read-only]
Returns the edge this segment info belongs to. | AbstractSegmentInfo | ||
fixed : Boolean [read-only]
Determines whether or not this segment info is fixed, that means a fixed location has been determined inside its location range (locationRange). | AbstractSegmentInfo | ||
location : Number
Getter:
Returns the fixed location inside the location range (locationRange) that has been set before. | AbstractSegmentInfo | ||
locationRange : Interval [read-only]
Returns the range, the location of the segment shall be placed in. | AbstractSegmentInfo | ||
maxExtension : Interval [read-only]
Returns the maximum extension this segment will stretch. | AbstractSegmentInfo | ||
minExtension : Interval [read-only]
The minimal known extension of the segment, that is the minimal interval this segment will cover in any case. | AbstractSegmentInfo | ||
preferredAlignment : int
Specifies whether this segment prefers to be placed close to the lower bound (ALIGNMENT_MIN), upper bound (ALIGNMENT_MAX) or somewhere (ALIGNMENT_ANY) of its location range. | AbstractSegmentInfo | ||
segmentGroup : SegmentGroup [override]
Sets the segment group for this segment info and its cell segment infos and adjusts their locationRange s to use the com.yworks.yfiles.layout.router.polyline.SegmentGroup.commonLocationRange. | SegmentInfo | ||
segmentIndex : int [read-only]
Returns the index of this info's segment. | AbstractSegmentInfo | ||
vertical : Boolean [read-only]
Determines whether or not the associated segment is vertical. | AbstractSegmentInfo |
Method | Defined By | ||
---|---|---|---|
Creates a new instance using a line segment to describe the edge segment. | SegmentInfo | ||
cellSegmentInfoCount():int
Returns the number of com.yworks.yfiles.layout.router.polyline.CellSegmentInfo of this segment info. | SegmentInfo | ||
equals(o:Object):Boolean | YObject | ||
getCellSegmentInfo(index:int):CellSegmentInfo
Returns the com.yworks.yfiles.layout.router.polyline.CellSegmentInfo at the given index of this segment info. | SegmentInfo | ||
getClass():Class [override] | SegmentInfo | ||
hashCode():int | YObject | ||
[static]
Creates a new instance using a line segment to describe the edge segment. | SegmentInfo | ||
newSegmentInfo2(edge:Edge, segmentIndex:int, direction:Direction, locationRange:Interval, minExtension:Interval, maxExtension:Interval, cellSegmentInfos:List):SegmentInfo [static]
Creates a new instance for the segment. | SegmentInfo | ||
toString():String | AbstractSegmentInfo |
Method | Defined By | ||
---|---|---|---|
AbstractSegmentInfo | |||
initAbstractSegmentInfo2(edge:Edge, segmentIndex:int, direction:Direction, locationRange:Interval, minExtension:Interval, maxExtension:Interval):void | AbstractSegmentInfo | ||
Initializes this object. | SegmentInfo | ||
initSegmentInfo2(edge:Edge, segmentIndex:int, direction:Direction, locationRange:Interval, minExtension:Interval, maxExtension:Interval, cellSegmentInfos:List):void
Initializes this object. | SegmentInfo |
atStrongPortConstraint | property |
atStrongPortConstraint:Boolean
Determines whether or not this edge segment has the restriction of a strong port constraint.
public function get atStrongPortConstraint():Boolean
public function set atStrongPortConstraint(value:Boolean):void
segmentGroup | property |
segmentGroup:SegmentGroup
[override] Sets the segment group for this segment info and its cell segment infos and adjusts their locationRange s to use the com.yworks.yfiles.layout.router.polyline.SegmentGroup.commonLocationRange.
public function get segmentGroup():SegmentGroup
public function set segmentGroup(value:SegmentGroup):void
See also
SegmentInfo | () | Constructor |
public function SegmentInfo(edge:Edge, segmentIndex:int, segment:LineSegment, init:Boolean = true)
Creates a new instance using a line segment to describe the edge segment.
This constructor is meant to be used for fixed orthogonal edge segments already knowing their extension and location.
Parametersedge:Edge — The edge this segment info belongs to.
| |
segmentIndex:int — The index of the segment this info belongs to.
| |
segment:LineSegment — A line segment describing the edge segment.
| |
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.
|
cellSegmentInfoCount | () | method |
public function cellSegmentInfoCount():int
Returns the number of com.yworks.yfiles.layout.router.polyline.CellSegmentInfo of this segment info.
Returnsint — the number of com.yworks.yfiles.layout.router.polyline.CellSegmentInfo of this segment info
|
See also
getCellSegmentInfo | () | method |
public function getCellSegmentInfo(index:int):CellSegmentInfo
Returns the com.yworks.yfiles.layout.router.polyline.CellSegmentInfo at the given index of this segment info.
Parameters
index:int — index of the com.yworks.yfiles.layout.router.polyline.CellSegmentInfo to return
|
CellSegmentInfo — the com.yworks.yfiles.layout.router.polyline.CellSegmentInfo at the given index of this segment info
|
See also
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initSegmentInfo1 | () | method |
protected final function initSegmentInfo1(edge:Edge, segmentIndex:int, segment:LineSegment):void
Initializes this object. See the documentation of the corresponding factory method newSegmentInfo1()
for details.
Parameters
edge:Edge | |
segmentIndex:int | |
segment:LineSegment |
See also
initSegmentInfo2 | () | method |
protected final function initSegmentInfo2(edge:Edge, segmentIndex:int, direction:Direction, locationRange:Interval, minExtension:Interval, maxExtension:Interval, cellSegmentInfos:List):void
Initializes this object. See the documentation of the corresponding factory method newSegmentInfo2()
for details.
Parameters
edge:Edge | |
segmentIndex:int | |
direction:Direction | |
locationRange:Interval | |
minExtension:Interval | |
maxExtension:Interval | |
cellSegmentInfos:List |
See also
newSegmentInfo1 | () | method |
public static function newSegmentInfo1(edge:Edge, segmentIndex:int, segment:LineSegment):SegmentInfo
Creates a new instance using a line segment to describe the edge segment.
This constructor is meant to be used for fixed orthogonal edge segments already knowing their extension and location.
Parameters
edge:Edge — The edge this segment info belongs to.
| |
segmentIndex:int — The index of the segment this info belongs to.
| |
segment:LineSegment — A line segment describing the edge segment.
|
SegmentInfo |
newSegmentInfo2 | () | method |
public static function newSegmentInfo2(edge:Edge, segmentIndex:int, direction:Direction, locationRange:Interval, minExtension:Interval, maxExtension:Interval, cellSegmentInfos:List):SegmentInfo
Creates a new instance for the segment.
Parameters
edge:Edge — The edge the segment of this info belongs to.
| |
segmentIndex:int — The index of the segment this info belongs to.
| |
direction:Direction — The direction the segment points to.
| |
locationRange:Interval — The range the common location of this segment has to be inside.
| |
minExtension:Interval — The minimal interval in extension direction this segment is known to intersect.
| |
maxExtension:Interval — The maximum interval in extension direction this segment will span.
| |
cellSegmentInfos:List — A list of cell segment infos this segment info is build upon.
|
SegmentInfo |