jimm.datavision.gui.cmd
Class PaperSizeCommand

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

public class PaperSizeCommand
extends CommandAdapter

Change a report's paper size.

Author:
Jim Menard, jimm@io.com

Field Summary
(package private)  Designer designer
           
(package private)  PaperFormat newFormat
           
(package private)  PaperFormat origFormat
           
(package private)  Report report
           
 
Fields inherited from class jimm.datavision.gui.cmd.CommandAdapter
name
 
Constructor Summary
PaperSizeCommand(Report r, Designer win, PaperFormat p)
           
 
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

report

Report report

designer

Designer designer

origFormat

PaperFormat origFormat

newFormat

PaperFormat newFormat
Constructor Detail

PaperSizeCommand

public PaperSizeCommand(Report r,
                        Designer win,
                        PaperFormat p)
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