|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jimm.datavision.gui.cmd.CommandAdapter jimm.datavision.gui.cmd.FieldStretchCommand
public class FieldStretchCommand
After stretching a field using the mouse, this command lets us undo and redo the size change.
Field Summary | |
---|---|
protected FieldWidget |
fw
|
protected Rectangle |
newBounds
|
protected Rectangle |
origBounds
|
Fields inherited from class jimm.datavision.gui.cmd.CommandAdapter |
---|
name |
Constructor Summary | |
---|---|
FieldStretchCommand(FieldWidget fw,
Rectangle origBounds)
|
Method Summary | |
---|---|
void |
perform()
Performs the command. |
void |
redo()
Redoes the command by calling CommandAdapter.perform() . |
void |
undo()
Undoes the command. |
Methods inherited from class jimm.datavision.gui.cmd.CommandAdapter |
---|
getName, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FieldWidget fw
protected Rectangle origBounds
protected Rectangle newBounds
Constructor Detail |
---|
public FieldStretchCommand(FieldWidget fw, Rectangle origBounds)
Method Detail |
---|
public void perform()
CommandAdapter
perform
in interface Command
perform
in class CommandAdapter
public void undo()
CommandAdapter
undo
in interface Command
undo
in class CommandAdapter
public void redo()
CommandAdapter
CommandAdapter.perform()
.
redo
in interface Command
redo
in class CommandAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |