Package | com.yworks.yfiles.geom |
Class | public class YPointPath |
Inheritance | YPointPath YObject Object |
Property | Defined By | ||
---|---|---|---|
first : YPoint [read-only]
Get the first point in the path. | YPointPath | ||
last : YPoint [read-only]
Get the last point in the path. | YPointPath |
Method | Defined By | ||
---|---|---|---|
YPointPath(init:Boolean = true)
Creates a new empty path. | YPointPath | ||
calculateLength():Number
Calculate the (geometric) length of the path. | YPointPath | ||
Create a point path with reverse ordering of the points. | YPointPath | ||
Get the points in the path. | YPointPath | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | YPointPath | ||
getLineSegment(i:int):LineSegment
Returns a line segment in the path. | YPointPath | ||
hashCode():int | YObject | ||
Get the points in the path. | YPointPath | ||
length():int
Get the number of points in the path. | YPointPath | ||
lineSegmentCount():int
Get the number of line segments in the path. | YPointPath | ||
Get the points in the path. | YPointPath | ||
[static]
Creates a new empty path. | YPointPath | ||
[static]
Creates a new path from a list of points. | YPointPath | ||
newYPointPath3(path:Vector.<Object>):YPointPath [static]
Creates a new path from an array of points. | YPointPath | ||
Get the points in the path. | YPointPath | ||
toArray():Vector.<Object>
Get the points in the list as array. | YPointPath | ||
Get the points in the path as list. | YPointPath | ||
toString():String | YPointPath |
Method | Defined By | ||
---|---|---|---|
initYPointPath1():void
Initializes this object. | YPointPath | ||
initYPointPath2(l:List):void
Initializes this object. | YPointPath | ||
initYPointPath3(path:Vector.<Object>):void
Initializes this object. | YPointPath |
Constant | Defined By | ||
---|---|---|---|
EMPTY_PATH : YPointPath [static]
Defines a path with no points. | YPointPath |
first | property |
first:YPoint
[read-only] Get the first point in the path.
public function get first():YPoint
last | property |
last:YPoint
[read-only] Get the last point in the path.
public function get last():YPoint
YPointPath | () | Constructor |
public function YPointPath(init:Boolean = true)
Creates a new empty path.
Parametersinit: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.
|
calculateLength | () | method |
public function calculateLength():Number
Calculate the (geometric) length of the path. The length of the path is the sum of lengths of all line segments making up the path.
ReturnsNumber — the (geometric) length of the path
|
createReverse | () | method |
public function createReverse():YPointPath
Create a point path with reverse ordering of the points.
ReturnsYPointPath |
cursor | () | method |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
getLineSegment | () | method |
public function getLineSegment(i:int):LineSegment
Returns a line segment in the path.
Parameters
i:int |
LineSegment |
initYPointPath1 | () | method |
protected final function initYPointPath1():void
Initializes this object. See the documentation of the corresponding factory method newYPointPath1()
for details.
See also
initYPointPath2 | () | method |
protected final function initYPointPath2(l:List):void
Initializes this object. See the documentation of the corresponding factory method newYPointPath2()
for details.
Parameters
l:List |
See also
initYPointPath3 | () | method |
protected final function initYPointPath3(path:Vector.<Object>):void
Initializes this object. See the documentation of the corresponding factory method newYPointPath3()
for details.
Parameters
path:Vector.<Object> |
See also
iterator | () | method |
length | () | method |
public function length():int
Get the number of points in the path.
Returnsint |
lineSegmentCount | () | method |
public function lineSegmentCount():int
Get the number of line segments in the path.
Returnsint |
lineSegments | () | method |
public function lineSegments():YLineSegmentCursor
Get the points in the path.
ReturnsYLineSegmentCursor |
newYPointPath1 | () | method |
newYPointPath2 | () | method |
public static function newYPointPath2(l:List):YPointPath
Creates a new path from a list of points.
Parameters
l:List — a list of com.yworks.yfiles.geom.YPoint instances.
|
YPointPath |
See also
newYPointPath3 | () | method |
public static function newYPointPath3(path:Vector.<Object>):YPointPath
Creates a new path from an array of points.
Parameters
path:Vector.<Object> |
YPointPath |
points | () | method |
toArray | () | method |
public function toArray():Vector.<Object>
Get the points in the list as array.
ReturnsVector.<Object> |
toList | () | method |
public function toList():List
Get the points in the path as list.
ReturnsList — a list of com.yworks.yfiles.geom.YPoint instances.
|
See also
toString | () | method |
public function toString():String
ReturnsString |
EMPTY_PATH | Constant |
public static const EMPTY_PATH:YPointPath
Defines a path with no points.