Class draw2d.CommandStack

Object
   |
   +--draw2d.CommandStack

class draw2d.CommandStack

Defined in CommandStack.js

Version: 0.9.14

Author: Andreas Herz


Field Summary
<static>  Object POST_EXECUTE
          Constant indicating notification after a command has been executed (value is 8).
<static>  Object POST_MASK
          
<static>  Object POST_REDO
          Constant indicating notification after a command has been redone (value is 16).
<static>  Object POST_UNDO
          Constant indicating notification after a command has been undone (value is 32).
<static>  Object PRE_EXECUTE
          Constant indicating notification prior to executing a command (value is 1).
<static>  Object PRE_MASK
          
<static>  Object PRE_REDO
          Constant indicating notification prior to redoing a command (value is 2).
<static>  Object PRE_UNDO
          Constant indicating notification prior to undoing a command (value is 4).
 
Constructor Summary
draw2d.CommandStack ()
           
 
Method Summary
 void addCommandStackEventListener( <draw2d.CommandStackListener> listener)
           Adds a listener to the command stack, which will be notified whenever a command has been processed on the stack.
 boolean canRedo()
          
 boolean canUndo()
          
 void execute( <draw2d.Command> command)
           Executes the specified Command if possible.
 void markSaveLocation()
           Remove the undo / redo history.
 void notifyListeners( <draw2d.Command> command, <int> state)
           Notifies command stack event listeners that the command stack has changed to the specified state.
 void redo()
           Redo the command after the user has undo this command
 void removeCommandStackEventListener( <draw2d.CommandStackListener> listener)
           Removes a listener from the command stack.
 void setUndoLimit( <int> count)
           Set the maximal undo stack size.
 void undo()
           Undo the command

Field Detail

POST_EXECUTE

<static> Object POST_EXECUTE

POST_MASK

<static> Object POST_MASK

POST_REDO

<static> Object POST_REDO

POST_UNDO

<static> Object POST_UNDO

PRE_EXECUTE

<static> Object PRE_EXECUTE

PRE_MASK

<static> Object PRE_MASK

PRE_REDO

<static> Object PRE_REDO

PRE_UNDO

<static> Object PRE_UNDO

Constructor Detail

draw2d.CommandStack

draw2d.CommandStack()

Method Detail

addCommandStackEventListener

void addCommandStackEventListener( <draw2d.CommandStackListener> listener)

canRedo

boolean canRedo()

canUndo

boolean canUndo()

execute

void execute( <draw2d.Command> command)

markSaveLocation

void markSaveLocation()

notifyListeners

void notifyListeners( <draw2d.Command> command, <int> state)

redo

void redo()

removeCommandStackEventListener

void removeCommandStackEventListener( <draw2d.CommandStackListener> listener)

setUndoLimit

void setUndoLimit( <int> count)

undo

void undo()


Documentation generated by JSDoc on Thu Feb 7 23:45:47 2008