ucar.unidata.ui.colortable
Class ColorTableCanvas.ColorTableCommand

java.lang.Object
  extended by ucar.unidata.ui.Command
      extended by ucar.unidata.ui.colortable.ColorTableCanvas.CanvasCommand
          extended by ucar.unidata.ui.colortable.ColorTableCanvas.ColorTableCommand
Enclosing class:
ColorTableCanvas

public static class ColorTableCanvas.ColorTableCommand
extends ColorTableCanvas.CanvasCommand

Class ColorTableCommand is used when the CT is changed and we can undo it using this class

Author:
IDV development team

Constructor Summary
ColorTableCanvas.ColorTableCommand(ColorTableCanvas canvas, ColorTable newCt)
          Create me
 
Method Summary
 void doCommand()
          Apply command
 void undoCommand()
          Undo command
 
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.ColorTableCommand

public ColorTableCanvas.ColorTableCommand(ColorTableCanvas canvas,
                                          ColorTable newCt)
Create me

Parameters:
canvas - The canvas
newCt - The CT
Method Detail

doCommand

public void doCommand()
Apply command

Overrides:
doCommand in class ColorTableCanvas.CanvasCommand

undoCommand

public void undoCommand()
Undo command

Overrides:
undoCommand in class ColorTableCanvas.CanvasCommand