Packagecom.flashdynamix.motion.vectors
Classpublic class CurveLine
InheritanceCurveLine Inheritance Line
ImplementsIVector

Defines a CurveLine vector path to be drawn by a VectorLayer.



Public Properties
 PropertyDefined by
 Inheritedlength : int
Line
 Inheritedpts : Array
A list of Points defining the path
Line
 Inheritedstyle : Array
The style parameters to use when the line is drawn via the Graphics.lineStyle method.
Line
  through : Boolean = false
Whether the pts in the CurveLine will be used as control points or through points.
CurveLine
Public Methods
 MethodDefined by
  
CurveLine(through:Boolean = false, ... pts)
CurveLine
 Inherited
addAt(index:int, pt:Point):void
Adds a Point into the Line path at the specified index.
Line
  
draw(vector:Graphics, rect:Rectangle):void
Draws the CurveLine path into the Graphics instance provided.
CurveLine
 Inherited
index(index:int):Point
Line
 Inherited
push(pt:Point):void
Pushes a Point into the Line path.
Line
 Inherited
remove(pt:Point):void
Removes a Point from the Line path.
Line
 Inherited
removeAt(index:int, count:int = 1):void
Removes one or more Points at the specified index and count from the Line path.
Line
 Inherited
unshift(pt:Point):void
Unshifts a Point from the Line path.
Line
Property detail
throughproperty
public var through:Boolean = false

Whether the pts in the CurveLine will be used as control points or through points.

Constructor detail
CurveLine()constructor
public function CurveLine(through:Boolean = false, ... pts)

Parameters
through:Boolean (default = false) — Whether the pts in the CurveLine will be used as control points or through points.
 
... pts — A list of Points defining the CurveLine path.
Method detail
draw()method
public override function draw(vector:Graphics, rect:Rectangle):void

Draws the CurveLine path into the Graphics instance provided.

Parameters
vector:Graphics
 
rect:Rectangle