ucar.unidata.ui.colortable
Class ColorTableCanvas.CanvasCommand

java.lang.Object
  extended by ucar.unidata.ui.Command
      extended by ucar.unidata.ui.colortable.ColorTableCanvas.CanvasCommand
Direct Known Subclasses:
ColorTableCanvas.ColorListCommand, ColorTableCanvas.ColorTableCommand
Enclosing class:
ColorTableCanvas

public static class ColorTableCanvas.CanvasCommand
extends Command

Class CanvasCommand takes a snapshot of the state of the canvas

Author:
IDV development team

Constructor Summary
ColorTableCanvas.CanvasCommand(ColorTableCanvas canvas)
          Create me
 
Method Summary
 void doCommand()
          Do it
 void undoCommand()
          Undo it
 
Methods inherited from class ucar.unidata.ui.Command
isUndoable, redoCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorTableCanvas.CanvasCommand

public ColorTableCanvas.CanvasCommand(ColorTableCanvas canvas)
Create me

Parameters:
canvas - The canvas
Method Detail

doCommand

public void doCommand()
Do it

Overrides:
doCommand in class Command

undoCommand

public void undoCommand()
Undo it

Overrides:
undoCommand in class Command