Packagecom.degrafa.geometry.command
Classpublic final class CommandStackItem

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.



Public Properties
 PropertyDefined by
  bounds : Rectangle
[read-only] The calculated bounds for this object.
CommandStackItem
  commandStack : CommandStack
CommandStackItem
  control : Point
Return the control point as a point object
CommandStackItem
  cx : Number
CommandStackItem
  cy : Number
CommandStackItem
  delegate : Function
CommandStackItem
  end : Point
Return the end point as a point object
CommandStackItem
  id : String
CommandStackItem
  indexInParent : uint
CommandStackItem
  invalidated : Boolean
Specifies whether bounds for this object is to be re calculated.
CommandStackItem
  lengthInvalidated : Boolean
Specifies whether length this object is to be re calculated.
CommandStackItem
  next : CommandStackItem
CommandStackItem
  parent : CommandStack
CommandStackItem
  previous : CommandStackItem
CommandStackItem
  reference : String
CommandStackItem
  renderDelegateEnd : Array
Functions to be called during the render loop when this item has just been rendered.
CommandStackItem
  renderDelegateStart : Array
Functions to be called during the render loop when this item is about to be rendered.
CommandStackItem
  segmentLength : Number
[read-only]
CommandStackItem
  skip : Boolean
CommandStackItem
  start : Point
[read-only] Return the start point as a point object.
CommandStackItem
  transformedLength : Number
[read-only]
CommandStackItem
  type : int
CommandStackItem
  x : Number
CommandStackItem
  x1 : Number
CommandStackItem
  y : Number
CommandStackItem
  y1 : Number
CommandStackItem
Public Methods
 MethodDefined by
  
CommandStackItem(type:int = 0, x:Number, y:Number, x1:Number, y1:Number, cx:Number, cy:Number, commandStack:CommandStack = null)
CommandStackItem
  
calcBounds():void
Calculates the bounds for this item.
CommandStackItem
  
An object to derive this objects properties from.
CommandStackItem
  
segmentAngleAt(t:Number):Number
Returns the angle of a point on this segment at t (0-1)
CommandStackItem
  
segmentPointAt(t:Number):Point
Returns the point on this segment at t (0-1)
CommandStackItem
Public Constants
 ConstantDefined by
  COMMAND_STACK : int = 4
[static]
CommandStackItem
  CURVE_TO : int = 2
[static]
CommandStackItem
  DELEGATE_TO : int = 3
[static]
CommandStackItem
  IS_REGISTERED : Boolean
[static]
CommandStackItem
  LINE_TO : int = 1
[static]
CommandStackItem
  MOVE_TO : int = 0
[static]
CommandStackItem
Property detail
boundsproperty
bounds:Rectangle  [read-only]

The calculated bounds for this object.

Implementation
    public function get bounds():Rectangle
commandStackproperty 
commandStack:CommandStack  [read-write]Implementation
    public function get commandStack():CommandStack
    public function set commandStack(value:CommandStack):void
controlproperty 
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
cxproperty 
cx:Number  [read-write]Implementation
    public function get cx():Number
    public function set cx(value:Number):void
cyproperty 
cy:Number  [read-write]Implementation
    public function get cy():Number
    public function set cy(value:Number):void
delegateproperty 
delegate:Function  [read-write]Implementation
    public function get delegate():Function
    public function set delegate(value:Function):void
endproperty 
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
idproperty 
public var id:String
indexInParentproperty 
public var indexInParent:uint
invalidatedproperty 
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
lengthInvalidatedproperty 
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
nextproperty 
next:CommandStackItem  [read-write]Implementation
    public function get next():CommandStackItem
    public function set next(value:CommandStackItem):void
parentproperty 
public var parent:CommandStack
previousproperty 
previous:CommandStackItem  [read-write]Implementation
    public function get previous():CommandStackItem
    public function set previous(value:CommandStackItem):void
referenceproperty 
public var reference:String
renderDelegateEndproperty 
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
renderDelegateStartproperty 
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
segmentLengthproperty 
segmentLength:Number  [read-only]Implementation
    public function get segmentLength():Number
skipproperty 
public var skip:Boolean
startproperty 
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
transformedLengthproperty 
transformedLength:Number  [read-only]Implementation
    public function get transformedLength():Number
typeproperty 
public var type:int
xproperty 
x:Number  [read-write]Implementation
    public function get x():Number
    public function set x(value:Number):void
x1property 
x1:Number  [read-write]Implementation
    public function get x1():Number
    public function set x1(value:Number):void
yproperty 
y:Number  [read-write]Implementation
    public function get y():Number
    public function set y(value:Number):void
y1property 
y1:Number  [read-write]Implementation
    public function get y1():Number
    public function set y1(value:Number):void
Constructor detail
CommandStackItem()constructor
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)
Method detail
calcBounds()method
public function calcBounds():void

Calculates the bounds for this item.

derive()method 
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
value:CommandStackItem
segmentAngleAt()method 
public function segmentAngleAt(t:Number):Number

Returns the angle of a point on this segment at t (0-1)

Parameters
t:Number

Returns
Number
segmentPointAt()method 
public function segmentPointAt(t:Number):Point

Returns the point on this segment at t (0-1)

Parameters
t:Number

Returns
Point
Constant detail
COMMAND_STACKconstant
public static const COMMAND_STACK:int = 4
CURVE_TOconstant 
public static const CURVE_TO:int = 2
DELEGATE_TOconstant 
public static const DELEGATE_TO:int = 3
IS_REGISTEREDconstant 
public static const IS_REGISTERED:Boolean
LINE_TOconstant 
public static const LINE_TO:int = 1
MOVE_TOconstant 
public static const MOVE_TO:int = 0