|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdox.gui.undo.BackgroundEditAction
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.
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 |
public BackgroundEditAction(CDoxFrame cf, Cover c, java.lang.String oKey, java.lang.String nKey)
cf
- The CDoxFramec
- the cover which contains the backgroundImageoKey
- the oldKey to the originalImagenKey
- the newKey to the temp-filtered-Image.Method Detail |
public void undo()
DoAction
undo
in interface DoAction
public void redo()
DoAction
redo
in interface DoAction
public void invalidate()
DoAction
invalidate
in interface DoAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |