| Package | com.degrafa.geometry.command |
| Class | public final class CommandStack |
| Property | Defined by | ||
|---|---|---|---|
| bounds : Rectangle [read-only]
| CommandStack | ||
| currentAlpha : Number [static][read-only]
The current contextual alpha value that represents nested alpha values during render.
| CommandStack | ||
| currentContext : Graphics [static]
| CommandStack | ||
| currentFill : IGraphicsFill
[static]
| CommandStack | ||
| currentLayoutMatrix : Matrix [static]
| CommandStack | ||
| currentStroke : IGraphicsStroke
[static]
| CommandStack | ||
| currentTransformMatrix : Matrix [static]
| CommandStack | ||
| cursor : DegrafaCursor
[read-only]
Returns a working cursor for this command stack
| CommandStack | ||
| firstNonCommandStackItem : CommandStackItem
[read-only]
Get the first none commandstack type (CommandStackItem.COMMAND_STACK)
item in this command stack.
| CommandStack | ||
| firstSegmentWithLength : CommandStackItem
[read-only]
Returns the first commandStackItem objetc that has length
| CommandStack | ||
| globalRenderDelegateEnd : Array | CommandStack | ||
| globalRenderDelegateStart : Array | CommandStack | ||
| invalidated : Boolean
Specifies whether bounds for this object is to be re calculated.
| CommandStack | ||
| lastNonCommandStackItem : CommandStackItem
[read-only]
get the last none commandstack type (CommandStackItem.COMMAND_STACK)
item in this command stack.
| CommandStack | ||
| lastSegmentWithLength : CommandStackItem
[read-only]
Returns the last commandStackItem objetc that has length
| CommandStack | ||
| length : int
The current length(count) of the internal array of command stack items.
| CommandStack | ||
| lengthInvalidated : Boolean
Specifies whether the path length for this object is to be re calculated.
| CommandStack | ||
| owner : Geometry | CommandStack | ||
| parent : CommandStackItem | CommandStack | ||
| pathLength : Number [read-only]
Returns the length of the combined path elements.
| CommandStack | ||
| source : Array | CommandStack | ||
| transformBounds : Rectangle [read-only]
Returns a transformed version of this objects bounds.
| CommandStack | ||
| transformedPathLength : Number [read-only]
Returns the transformed length of the combined path elements.
| CommandStack | ||
| transMatrix : Matrix [static]
| CommandStack | ||
| Method | Defined by | ||
|---|---|---|---|
|
CommandStack(geometry:Geometry = null)
| CommandStack | ||
|
Adds a new COMMAND_STACK type item to be processed.
| CommandStack | ||
|
addCubicBezierTo(x0:Number, y0:Number, cx:Number, cy:Number, cx1:Number, cy1:Number, x1:Number, y1:Number, tolerance:int = 1):void
Accepts a cubic bezier and adds the CURVE_TO type items requiered to render it.
| CommandStack | ||
|
addCurveTo(cx:Number, cy:Number, x1:Number, y1:Number):CommandStackItem
Adds a new CURVE_TO type item to be processed.
| CommandStack | ||
|
addDelegate(delegate:Function):CommandStackItem
Adds a new DELEGATE_TO type item to be processed.
| CommandStack | ||
|
Adds a new command stack item to be processed.
| CommandStack | ||
|
Addes a commandStackItem at the specific location in the source.
| CommandStack | ||
|
addLineTo(x:Number, y:Number):CommandStackItem
Adds a new LINE_TO type item to be processed.
| CommandStack | ||
|
addMoveTo(x:Number, y:Number):CommandStackItem
Adds a new MOVE_TO type item to be processed.
| CommandStack | ||
|
adjustPointToLayoutAndTransform(point:Point):Point
Applies the current layout and transform to a point.
| CommandStack | ||
|
draw(graphics:Graphics, rc:Rectangle):Boolean
Initiates the render phase.
| CommandStack | ||
|
getItem(index:int):CommandStackItem
Return the item at the given index
| CommandStack | ||
|
getSettingsCache():Object
[static]
Helper function to permit caching values before nested calls inside a draw/endDraw phase
dev: this and related methods may change in the future.
| CommandStack | ||
|
pathAngleAt(t:Number):Number
Returns the angle of a point t(0-1) on the path.
| CommandStack | ||
|
pathPointAt(t:Number):Point
Returns the point at t(0-1) on the path.
| CommandStack | ||
|
removeContextualSettings():void
[static]
Helper function to reset a the rendering context to its default state
dev: this and related methods may change in the future.
| CommandStack | ||
|
resetBounds():void
Resets the bounds for this command stack.
| CommandStack | ||
|
resetCacheValues(values:Object):void
[static]
Helper function to reapply a set of cached settings to reset the context
dev: this and related methods may change in the future.
| CommandStack | ||
|
simpleRender(graphics:Graphics, rc:Rectangle):void
| CommandStack | ||
|
stackAlpha(alpha:Number):void
[static]
called internally by Geometry during a draw loop to create a nested alpha 'context'
dev: this and related methods may change in the future.
| CommandStack | ||
|
unstackAlpha():void
[static]
called internally during endDraw from Geometry to remove the local alpha 'context' after any children have rendered
dev: this and related methods may change in the future.
| CommandStack | ||
| Constant | Defined by | ||
|---|---|---|---|
| IS_REGISTERED : Boolean [static]
| CommandStack | ||
| bounds | property |
bounds:Rectangle [read-only]Implementation
public function get bounds():Rectangle
| currentAlpha | property |
currentAlpha:Number [read-only]The current contextual alpha value that represents nested alpha values during render. This is used during requests from paint objects.
Implementation public static function get currentAlpha():Number
| currentContext | property |
public static var currentContext:Graphics
| currentFill | property |
public static var currentFill:IGraphicsFill
| currentLayoutMatrix | property |
public static var currentLayoutMatrix:Matrix
| currentStroke | property |
public static var currentStroke:IGraphicsStroke
| currentTransformMatrix | property |
public static var currentTransformMatrix:Matrix
| cursor | property |
cursor:DegrafaCursor [read-only]Returns a working cursor for this command stack
Implementation public function get cursor():DegrafaCursor
| firstNonCommandStackItem | property |
firstNonCommandStackItem:CommandStackItem [read-only]Get the first none commandstack type (CommandStackItem.COMMAND_STACK) item in this command stack.
Implementation public function get firstNonCommandStackItem():CommandStackItem
| firstSegmentWithLength | property |
firstSegmentWithLength:CommandStackItem [read-only]Returns the first commandStackItem objetc that has length
Implementation public function get firstSegmentWithLength():CommandStackItem
| globalRenderDelegateEnd | property |
globalRenderDelegateEnd:Array [read-write]Implementation
public function get globalRenderDelegateEnd():Array
public function set globalRenderDelegateEnd(value:Array):void
| globalRenderDelegateStart | property |
globalRenderDelegateStart:Array [read-write]Implementation
public function get globalRenderDelegateStart():Array
public function set globalRenderDelegateStart(value:Array):void
| invalidated | property |
invalidated:Boolean [read-write]Specifies whether bounds for this object is to be re calculated. It will only get recalculated when bounds is requested.
Implementation public function get invalidated():Boolean
public function set invalidated(value:Boolean):void
| lastNonCommandStackItem | property |
lastNonCommandStackItem:CommandStackItem [read-only]get the last none commandstack type (CommandStackItem.COMMAND_STACK) item in this command stack.
Implementation public function get lastNonCommandStackItem():CommandStackItem
| lastSegmentWithLength | property |
lastSegmentWithLength:CommandStackItem [read-only]Returns the last commandStackItem objetc that has length
Implementation public function get lastSegmentWithLength():CommandStackItem
| length | property |
length:int [read-write]The current length(count) of the internal array of command stack items. Setting the length to 0 will clear all items in the command stack.
Implementation public function get length():int
public function set length(value:int):void
| lengthInvalidated | property |
lengthInvalidated:Boolean [read-write]Specifies whether the path length for this object is to be re calculated. It will only get recalculated when pathLength is requested.
Implementation public function get lengthInvalidated():Boolean
public function set lengthInvalidated(value:Boolean):void
| owner | property |
public var owner:Geometry
| parent | property |
public var parent:CommandStackItem
| pathLength | property |
pathLength:Number [read-only]Returns the length of the combined path elements.
Implementation public function get pathLength():Number
| source | property |
public var source:Array
| transformBounds | property |
transformBounds:Rectangle [read-only]Returns a transformed version of this objects bounds. If no transform is specified bounds is returned.
Implementation public function get transformBounds():Rectangle
| transformedPathLength | property |
transformedPathLength:Number [read-only]Returns the transformed length of the combined path elements. This is a preliminary implementation and requires optimization.
Implementation public function get transformedPathLength():Number
| transMatrix | property |
public static var transMatrix:Matrix
| CommandStack | () | constructor |
| addCommandStack | () | method |
public function addCommandStack(commandStack:CommandStack):CommandStackItemAdds a new COMMAND_STACK type item to be processed.
ParameterscommandStack:CommandStack |
CommandStackItem |
| addCubicBezierTo | () | method |
public function addCubicBezierTo(x0:Number, y0:Number, cx:Number, cy:Number, cx1:Number, cy1:Number, x1:Number, y1:Number, tolerance:int = 1):voidAccepts a cubic bezier and adds the CURVE_TO type items requiered to render it. And returns the array of added CURVE_TO objects.
Parametersx0:Number |
|
y0:Number |
|
cx:Number |
|
cy:Number |
|
cx1:Number |
|
cy1:Number |
|
x1:Number |
|
y1:Number |
|
tolerance:int (default = 1) |
| addCurveTo | () | method |
public function addCurveTo(cx:Number, cy:Number, x1:Number, y1:Number):CommandStackItemAdds a new CURVE_TO type item to be processed.
Parameterscx:Number |
|
cy:Number |
|
x1:Number |
|
y1:Number |
CommandStackItem |
| addDelegate | () | method |
public function addDelegate(delegate:Function):CommandStackItemAdds a new DELEGATE_TO type item to be processed.
Parametersdelegate:Function |
CommandStackItem |
| addItem | () | method |
public function addItem(value:CommandStackItem):CommandStackItemAdds a new command stack item to be processed.
Parametersvalue:CommandStackItem |
CommandStackItem |
| addItemAt | () | method |
public function addItemAt(value:CommandStackItem, index:int = -1):CommandStackItemAddes a commandStackItem at the specific location in the source. if index is not specified then the item is appended to the end.
Parametersvalue:CommandStackItem |
|
index:int (default = -1) |
CommandStackItem |
| addLineTo | () | method |
public function addLineTo(x:Number, y:Number):CommandStackItemAdds a new LINE_TO type item to be processed.
Parametersx:Number |
|
y:Number |
CommandStackItem |
| addMoveTo | () | method |
public function addMoveTo(x:Number, y:Number):CommandStackItemAdds a new MOVE_TO type item to be processed.
Parametersx:Number |
|
y:Number |
CommandStackItem |
| adjustPointToLayoutAndTransform | () | method |
public function adjustPointToLayoutAndTransform(point:Point):PointApplies the current layout and transform to a point.
Parameterspoint:Point |
Point |
| draw | () | method |
public function draw(graphics:Graphics, rc:Rectangle):BooleanInitiates the render phase.
Parametersgraphics:Graphics |
|
rc:Rectangle |
Boolean — true if the final phase of rendering in Geometry (endDraw) should be skipped
|
| getItem | () | method |
public function getItem(index:int):CommandStackItemReturn the item at the given index
Parametersindex:int |
CommandStackItem |
| getSettingsCache | () | method |
public static function getSettingsCache():ObjectHelper function to permit caching values before nested calls inside a draw/endDraw phase dev: this and related methods may change in the future.
ReturnsObject — an object holding cached settings to be re-applied following a nested call
|
| pathAngleAt | () | method |
public function pathAngleAt(t:Number):NumberReturns the angle of a point t(0-1) on the path.
Parameterst:Number |
Number |
| pathPointAt | () | method |
public function pathPointAt(t:Number):PointReturns the point at t(0-1) on the path.
Parameterst:Number |
Point |
| removeContextualSettings | () | method |
public static function removeContextualSettings():voidHelper function to reset a the rendering context to its default state dev: this and related methods may change in the future.
| resetBounds | () | method |
public function resetBounds():voidResets the bounds for this command stack.
| resetCacheValues | () | method |
public static function resetCacheValues(values:Object):voidHelper function to reapply a set of cached settings to reset the context dev: this and related methods may change in the future.
Parametersvalues:Object |
| simpleRender | () | method |
public function simpleRender(graphics:Graphics, rc:Rectangle):voidParameters
graphics:Graphics |
|
rc:Rectangle |
| stackAlpha | () | method |
public static function stackAlpha(alpha:Number):voidcalled internally by Geometry during a draw loop to create a nested alpha 'context' dev: this and related methods may change in the future.
Parametersalpha:Number |
| unstackAlpha | () | method |
public static function unstackAlpha():voidcalled internally during endDraw from Geometry to remove the local alpha 'context' after any children have rendered dev: this and related methods may change in the future.
| IS_REGISTERED | constant |
public static const IS_REGISTERED:Boolean