Packagecom.degrafa.geometry.command
Classpublic class CommandCursor
InheritanceCommandCursor Inheritance DegrafaCursor



Public Properties
 PropertyDefined by
 InheritedafterLast : Boolean
Checks whether or not the cursor is after the last item.
DegrafaCursor
 InheritedbeforeFirst : Boolean
Checks whether or not the cursor is before the first item.
DegrafaCursor
 Inheritedcurrent : *
Returns the Object at the currentIndex.
DegrafaCursor
 InheritedcurrentIndex : int
The value representing the current location of the cursor.
DegrafaCursor
 InheritednextObject : *
Gets the Object after the currentIndex
DegrafaCursor
 InheritedpreviousObject : *
Gets the Object before the currentIndex
DegrafaCursor
 Inheritedsource : Array
DegrafaCursor
Public Methods
 MethodDefined by
  
CommandCursor(source:Array)
CommandCursor
 Inherited
insert(value:*):void
Inserts a Object into the array at the currentIndex.
DegrafaCursor
 Inherited
moveFirst():void
Moves cursor to the front.
DegrafaCursor
 Inherited
moveLast():void
Moves cursor to the end.
DegrafaCursor
 Inherited
moveNext():Boolean
Moves the cursor up one item in the currentIndex unless it is at the end.
DegrafaCursor
  
moveNextCommand(type:int):Boolean
CommandCursor
 Inherited
movePrevious():Boolean
Moves the cursor down one item in the currentIndex unless it is at the beginning.
DegrafaCursor
  
movePreviousCommand(type:int):Boolean
CommandCursor
  
CommandCursor
  
CommandCursor
 Inherited
remove():*
Removes a Object from the array at the currentIndex.
DegrafaCursor
 Inherited
seek(bookmark:CursorBookmark, offset:int = 0):void
Moves the currentIndex using the bookmark and offset.
DegrafaCursor
Protected Constants
 ConstantDefined by
 InheritedAFTER_LAST_INDEX : int = -2
[static]
DegrafaCursor
 InheritedBEFORE_FIRST_INDEX : int = -1
[static]
DegrafaCursor
Constructor detail
CommandCursor()constructor
public function CommandCursor(source:Array)Parameters
source:Array
Method detail
moveNextCommand()method
public function moveNextCommand(type:int):BooleanParameters
type:int

Returns
Boolean
movePreviousCommand()method 
public function movePreviousCommand(type:int):BooleanParameters
type:int

Returns
Boolean
nextCommand()method 
public function nextCommand(type:int):CommandStackItemParameters
type:int

Returns
CommandStackItem
previousCommand()method 
public function previousCommand(type:String):CommandStackItemParameters
type:String

Returns
CommandStackItem