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
|
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
|
figure
Object figure
oldCompartment
Object oldCompartment
oldX
Object oldX
oldY
Object oldY
draw2d.CommandMove
draw2d.CommandMove( figure, x, y)
Version: 0.9.14
Author: Andreas Herz
canExecute
boolean canExecute()
Returns [true] if the command can be execute and the execution of the
command modify the model. A CommandMove with [startX,startX] == [endX,endY] should
return false.
the execution of the Command doesn't modify the model.
execute
void execute()
Execute the command the first time
redo
void redo()
Redo the command after the user has undo this command
setPosition
void setPosition( x, y)
Execute the command the first time
undo
void undo()
Documentation generated by
JSDoc on Thu Feb 7 23:45:47 2008