|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdox.gui.undo.ResizeAction
This class represents a resizing action. Redo will set the size to the new size, undo will reset it to the old size.
Constructor Summary | |
ResizeAction(Element e,
java.awt.Dimension src,
java.awt.Dimension dest)
Creates a new one. |
Method Summary | |
void |
invalidate()
This method invalidates the action, which typically means that the undo/redo methods do nothing. |
void |
redo()
Sets the size to the destination size. |
void |
undo()
Sets the size to the old size. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResizeAction(Element e, java.awt.Dimension src, java.awt.Dimension dest)
e
- the element that is resized.src
- the old size of the element.dest
- the new size of the element.Method Detail |
public void redo()
redo
in interface DoAction
public void undo()
undo
in interface DoAction
public void invalidate()
DoAction
invalidate
in interface DoAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |