|
Pounamu v1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pounamu.command.ResizeShape
an command to resize a shape on the drawing canvas.
Field Summary |
Fields inherited from interface pounamu.command.PounamuCommand |
EXCUTE, REDO, UNDO |
Constructor Summary | |
ResizeShape(ModellerPanel panel,
PounamuPanel shape,
int oldX,
int oldY,
int newX,
int newY,
int startX,
int startY)
constructor |
Method Summary | |
void |
excute()
excute this command |
java.lang.String |
getDescription()
get the description of this command |
void |
redo()
redo this command |
void |
undo()
undo this command |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResizeShape(ModellerPanel panel, PounamuPanel shape, int oldX, int oldY, int newX, int newY, int startX, int startY)
panel
- the drawing panel where this shape is moving onshape
- the shape to be movedoldX
- the coordinate x of the mouse caret when mouse pressed downoldY
- the coordinate y of the mouse caret when mouse releasenewX
- the coordinate x of the mouse caret when mouse pressed downnewY
- the coordinate y of the mouse caret when mouse releaseMethod Detail |
public void excute()
excute
in interface PounamuCommand
public void undo()
undo
in interface PounamuCommand
public void redo()
redo
in interface PounamuCommand
public java.lang.String getDescription()
getDescription
in interface PounamuCommand
|
Pounamu v1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |