| Package | com.flashdynamix.motion.vectors |
| Class | public class Line |
| Implements | IVector |
| Subclasses | CurveLine |
| Property | Defined by | ||
|---|---|---|---|
| length : int [read-only]
| Line | ||
| pts : Array
A list of Points defining the path
| Line | ||
| style : Array
The style parameters to use when the line is drawn via the Graphics.lineStyle method.
| Line | ||
| Method | Defined by | ||
|---|---|---|---|
|
Line(... pts)
| Line | ||
|
addAt(index:int, pt:Point):void
Adds a Point into the Line path at the specified index.
| Line | ||
|
draw(vector:Graphics, rect:Rectangle):void
Will draw the Line path into the Graphics instance provided.
| Line | ||
|
index(index:int):Point
| Line | ||
|
push(pt:Point):void
Pushes a Point into the Line path.
| Line | ||
|
remove(pt:Point):void
Removes a Point from the Line path.
| Line | ||
|
removeAt(index:int, count:int = 1):void
Removes one or more Points at the specified index and count from the Line path.
| Line | ||
|
unshift(pt:Point):void
Unshifts a Point from the Line path.
| Line | ||
| length | property |
length:int [read-only]Implementation
public function get length():int
| pts | property |
public var pts:ArrayA list of Points defining the path
| style | property |
public var style:ArrayThe style parameters to use when the line is drawn via the Graphics.lineStyle method.
| Line | () | constructor |
public function Line(... pts)Parameters
... pts — A list of Points defining the Line path.
|
| addAt | () | method |
public function addAt(index:int, pt:Point):voidAdds a Point into the Line path at the specified index.
Parametersindex:int — The index at which to insert the Point.
|
|
pt:Point — The Point to insert at the index.
|
| draw | () | method |
public function draw(vector:Graphics, rect:Rectangle):voidWill draw the Line path into the Graphics instance provided.
Parametersvector:Graphics |
|
rect:Rectangle |
| index | () | method |
public function index(index:int):PointParameters
index:int |
Point — The Point at the specified index.
|
| push | () | method |
public function push(pt:Point):voidPushes a Point into the Line path.
Parameterspt:Point — The Point which will be added to the end of the Line path.
|
| remove | () | method |
public function remove(pt:Point):voidRemoves a Point from the Line path.
Parameterspt:Point — The Point you would like to remove from the Line path.
|
| removeAt | () | method |
public function removeAt(index:int, count:int = 1):voidRemoves one or more Points at the specified index and count from the Line path.
Parametersindex:int — The index to start removing nodes from the Line path.
|
|
count:int (default = 1) — the Number of nodes to remove from the Line path. If this is 0 no nodes are removed.
|
| unshift | () | method |
public function unshift(pt:Point):voidUnshifts a Point from the Line path.
Parameterspt:Point — The Point which will be unshifted to the Line path.
|