Class draw2d.CommandMove

Object
   |
   +--draw2d.Command
         |
         +--draw2d.CommandMove

class draw2d.CommandMove
extends draw2d.Command

Defined in CommandMove.js

Version: 0.9.14

Author: Andreas Herz


Field Summary
 Object figure
          
 Object oldCompartment
          
 Object oldX
          
 Object oldY
          
   
Fields inherited from class draw2d.Command
label
 
Constructor Summary
draw2d.CommandMove ( figure, x, y)
           
 
Method Summary
 boolean canExecute()
           Returns [true] if the command can be execute and the execution of the command modify the model.
 void execute()
           Execute the command the first time
 void redo()
           Redo the command after the user has undo this command
 void setPosition( x, y)
           Execute the command the first time
 void undo()
           Undo the command
 
Methods inherited from class draw2d.Command
getLabel
 

Field Detail

figure

Object figure

oldCompartment

Object oldCompartment

oldX

Object oldX

oldY

Object oldY

Constructor Detail

draw2d.CommandMove

draw2d.CommandMove( figure, x, y)

Method Detail

canExecute

boolean canExecute()

execute

void execute()

redo

void redo()

setPosition

void setPosition( x, y)

undo

void undo()


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