lt.monarch.util
Class EditStyleAction

java.lang.Object
  extended by lt.monarch.util.EditStyleAction
Direct Known Subclasses:
ChangeThemeAction

public class EditStyleAction
extends java.lang.Object

Class used to store single style object (color, font or some other object). This class can be used for "Undo" action - it should retrieve previous object according to style tags from Style, PaintStyle or TextStyle object before the changes will be done. And it can reset style back to it's previous object value when it is needed.

See Also:
EditStyleActionType

Constructor Summary
Modifier Constructor and Description
protected EditStyleAction()
           
  EditStyleAction(PaintStyle<?> paintStyle, AbstractPaintTags paintTags, EditStyleActionType action)
           
  EditStyleAction(Style style, Key key)
           
  EditStyleAction(TextStyle<?> textStyle, AbstractPaintTags paintTags, EditStyleActionType action)
           
 
Method Summary
Modifier and Type Method and Description
 void undo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditStyleAction

public EditStyleAction(PaintStyle<?> paintStyle,
                       AbstractPaintTags paintTags,
                       EditStyleActionType action)

EditStyleAction

public EditStyleAction(TextStyle<?> textStyle,
                       AbstractPaintTags paintTags,
                       EditStyleActionType action)

EditStyleAction

public EditStyleAction(Style style,
                       Key key)

EditStyleAction

protected EditStyleAction()
Method Detail

undo

public void undo()