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


Field Summary
 Object endX1
          
 Object endY1
          
 Object line
          
 Object startX1
          
 Object startY1
          
   
Fields inherited from class draw2d.Command
label
 
Constructor Summary
draw2d.CommandMoveLine ( line, startX, startY, endX, endY)
           
 
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
 
Methods inherited from class draw2d.Command
getLabel
 

Field Detail

endX1

Object endX1

endY1

Object endY1

line

Object line

startX1

Object startX1

startY1

Object startY1

Constructor Detail

draw2d.CommandMoveLine

draw2d.CommandMoveLine( line, startX, startY, endX, endY)

Method Detail

canExecute

boolean canExecute()

execute

void execute()

redo

void redo()

setEndPoints

void setEndPoints( startX, startY, endX, endY)

undo

void undo()


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