Class draw2d.CommandMoveLine
Object
|
+--draw2d.Command
|
+--draw2d.CommandMoveLine
- class
draw2d.CommandMoveLine
- extends draw2d.Command
Defined in CommandMoveLine.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
|
setEndPoints( startX, startY, endX, endY)
Set the points after the line move.
|
void
|
undo()
Undo the command
|
endX1
Object endX1
endY1
Object endY1
line
Object line
startX1
Object startX1
startY1
Object startY1
draw2d.CommandMoveLine
draw2d.CommandMoveLine( line, startX, startY, endX, endY)
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
setEndPoints
void setEndPoints( startX, startY, endX, endY)
Set the points after the line move.
undo
void undo()
Documentation generated by
JSDoc on Thu Feb 7 23:45:47 2008