jimm.datavision.gui.cmd
Class FieldResizeCommand

java.lang.Object
  extended by jimm.datavision.gui.cmd.CommandAdapter
      extended by jimm.datavision.gui.cmd.FieldResizeCommand
All Implemented Interfaces:
Command, Nameable

public class FieldResizeCommand
extends CommandAdapter

Resizes a single field by comparing it with another field and copying one of its dimensions.

Author:
Jim Menard, jimm@io.com

Field Summary
protected  FieldWidget fw
           
protected  Rectangle origBounds
           
protected  Field prototype
           
protected  SectionResizeCommand sectionResizeCommand
           
protected  int which
           
 
Fields inherited from class jimm.datavision.gui.cmd.CommandAdapter
name
 
Constructor Summary
FieldResizeCommand(FieldWidget fw, int which, Field prototype)
           
 
Method Summary
 void perform()
          Performs the command.
 void undo()
          Undoes the command.
 
Methods inherited from class jimm.datavision.gui.cmd.CommandAdapter
getName, redo, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fw

protected FieldWidget fw

which

protected int which

prototype

protected Field prototype

origBounds

protected Rectangle origBounds

sectionResizeCommand

protected SectionResizeCommand sectionResizeCommand
Constructor Detail

FieldResizeCommand

public FieldResizeCommand(FieldWidget fw,
                          int which,
                          Field prototype)
Method Detail

perform

public void perform()
Description copied from class: CommandAdapter
Performs the command. The default implementation does nothing.

Specified by:
perform in interface Command
Overrides:
perform in class CommandAdapter

undo

public void undo()
Description copied from class: CommandAdapter
Undoes the command. The default implementation does nothing.

Specified by:
undo in interface Command
Overrides:
undo in class CommandAdapter