The CommandStackItem manages and stores one of type (MOVE_TO,LINE_TO,CURVE_TO,DELEGATE_TO,COMMAND_STACK).
It also serves as an injection point for decoration. Like the CommandStack it provides management and
helper methods.
bounds:Rectangle [read-only]
The calculated bounds for this object.
Implementation
public function get bounds():Rectangle
commandStack:CommandStack [read-write]
Implementation
public function get commandStack():CommandStack
public function set commandStack(value:CommandStack):void
control:Point [read-write]
Return the control point as a point object
Implementation
public function get control():Point
public function set control(value:Point):void
cx:Number [read-write]Implementation
public function get cx():Number
public function set cx(value:Number):void
cy:Number [read-write]Implementation
public function get cy():Number
public function set cy(value:Number):void
delegate:Function [read-write]Implementation
public function get delegate():Function
public function set delegate(value:Function):void
end:Point [read-write]
Return the end point as a point object
Implementation
public function get end():Point
public function set end(value:Point):void
public var id:String
public var indexInParent:uint
invalidated:Boolean [read-write]
Specifies whether bounds for this object is to be re calculated.
Only property updates which affect the computation of this
object set this property. It will only get recalculated
when bounds is requested.
Implementation
public function get invalidated():Boolean
public function set invalidated(value:Boolean):void
lengthInvalidated:Boolean [read-write]
Specifies whether length this object is to be re calculated.
It will only get recalculated when segmentLength is requested.
Implementation
public function get lengthInvalidated():Boolean
public function set lengthInvalidated(value:Boolean):void
next:CommandStackItem [read-write]
Implementation
public function get next():CommandStackItem
public function set next(value:CommandStackItem):void
public var parent:CommandStack
previous:CommandStackItem [read-write]
Implementation
public function get previous():CommandStackItem
public function set previous(value:CommandStackItem):void
public var reference:String
renderDelegateEnd:Array [read-write]
Functions to be called during the render loop when
this item has just been rendered.
Implementation
public function get renderDelegateEnd():Array
public function set renderDelegateEnd(value:Array):void
renderDelegateStart:Array [read-write]
Functions to be called during the render loop when
this item is about to be rendered.
Implementation
public function get renderDelegateStart():Array
public function set renderDelegateStart(value:Array):void
segmentLength:Number [read-only]Implementation
public function get segmentLength():Number
public var skip:Boolean
start:Point [read-only]
Return the start point as a point object. This is considered to be
the previous segments end point. You can only get the start point
you can not set it.
Implementation
public function get start():Point
transformedLength:Number [read-only]Implementation
public function get transformedLength():Number
public var type:int
x:Number [read-write]Implementation
public function get x():Number
public function set x(value:Number):void
x1:Number [read-write]Implementation
public function get x1():Number
public function set x1(value:Number):void
y:Number [read-write]Implementation
public function get y():Number
public function set y(value:Number):void
y1:Number [read-write]Implementation
public function get y1():Number
public function set y1(value:Number):void
public function CommandStackItem(type:int = 0, x:Number, y:Number, x1:Number, y1:Number, cx:Number, cy:Number, commandStack:CommandStack = null)Parameters
| type:int (default = 0) |
| |
| x:Number |
| |
| y:Number |
| |
| x1:Number |
| |
| y1:Number |
| |
| cx:Number |
| |
| cy:Number |
| |
| commandStack:CommandStack (default = null) |
public function calcBounds():void
Calculates the bounds for this item.
public function derive(value:CommandStackItem):void
An object to derive this objects properties from. When specified this
object will derive it's unspecified properties from the passed object.
Parameters
public function segmentAngleAt(t:Number):Number
Returns the angle of a point on this segment at t (0-1)
Parameters
Returns
public function segmentPointAt(t:Number):Point
Returns the point on this segment at t (0-1)
Parameters
Returns
public static const COMMAND_STACK:int = 4
public static const CURVE_TO:int = 2
public static const DELEGATE_TO:int = 3
public static const IS_REGISTERED:Boolean
public static const LINE_TO:int = 1
public static const MOVE_TO:int = 0