cdox.gui.undo
Class BackgroundEditAction

java.lang.Object
  extended bycdox.gui.undo.BackgroundEditAction
All Implemented Interfaces:
DoAction

public class BackgroundEditAction
extends java.lang.Object
implements DoAction

This class represents the undo/redo action for an backgroundImage-correction. This can be blur sharpen, alphacorrection, contrast or brightness. It saves the keys to the files where the backgroundImages are Stored. If undo is called the old image is loaded in the Cover and if redo is called the filtered image is loaded into the Cover.

Version:
May 5th 2002
Author:
Rutger Bezema, Andreas Schmitz
See Also:
Cover.setFilteredBackgroundImage(java.awt.image.BufferedImage)

Constructor Summary
BackgroundEditAction(CDoxFrame cf, Cover c, java.lang.String oKey, java.lang.String nKey)
          Constructs a new backgroundEditAction which stores the keys to the temporary files of the filtered and un-filtered (original) image.
 
Method Summary
 void invalidate()
          This method invalidates the action, which typically means that the undo/redo methods do nothing.
 void redo()
          This method redoes the action.
 void undo()
          This method undoes the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackgroundEditAction

public BackgroundEditAction(CDoxFrame cf,
                            Cover c,
                            java.lang.String oKey,
                            java.lang.String nKey)
Constructs a new backgroundEditAction which stores the keys to the temporary files of the filtered and un-filtered (original) image.

Parameters:
cf - The CDoxFrame
c - the cover which contains the backgroundImage
oKey - the oldKey to the originalImage
nKey - the newKey to the temp-filtered-Image.
Method Detail

undo

public void undo()
Description copied from interface: DoAction
This method undoes the action.

Specified by:
undo in interface DoAction

redo

public void redo()
Description copied from interface: DoAction
This method redoes the action.

Specified by:
redo in interface DoAction

invalidate

public void invalidate()
Description copied from interface: DoAction
This method invalidates the action, which typically means that the undo/redo methods do nothing.

Specified by:
invalidate in interface DoAction