|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjimm.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 Commandperform in class CommandAdapterpublic void undo()
CommandAdapter
undo in interface Commandundo in class CommandAdapterpublic void redo()
CommandAdapterCommandAdapter.perform().
redo in interface Commandredo in class CommandAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||