org.virbo.autoplot.state
Class UndoRedoSupport

java.lang.Object
  extended by org.virbo.autoplot.state.UndoRedoSupport

public class UndoRedoSupport
extends java.lang.Object


Constructor Summary
UndoRedoSupport(ApplicationModel applicationModel)
          Creates a new instance of UndoRedoSupport
 
Method Summary
 javax.swing.Action getRedoAction()
           
 java.lang.String getRedoLabel()
          returns a label describing the redo operation, or null if the operation doesn't exist.
 javax.swing.Action getUndoAction()
           
 java.lang.String getUndoLabel()
          returns a label describing the undo operation, or null if the operation doesn't exist.
 boolean isIgnoringUpdates()
          Getter for property ignoringUpdates.
 void pushState(java.beans.PropertyChangeEvent ev)
           
 void redo()
           
 void refreshUndoMultipleMenu(javax.swing.JMenu undoMultipleMenu)
           
 void resetHistory()
           
 void setIgnoringUpdates(boolean ignoringUpdates)
          Setter for property ignoringUpdates.
 void undo()
           
 void undo(int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UndoRedoSupport

public UndoRedoSupport(ApplicationModel applicationModel)
Creates a new instance of UndoRedoSupport

Method Detail

refreshUndoMultipleMenu

public void refreshUndoMultipleMenu(javax.swing.JMenu undoMultipleMenu)

getUndoAction

public javax.swing.Action getUndoAction()

undo

public void undo()

undo

public void undo(int level)

getRedoAction

public javax.swing.Action getRedoAction()

redo

public void redo()

pushState

public void pushState(java.beans.PropertyChangeEvent ev)

getUndoLabel

public java.lang.String getUndoLabel()
returns a label describing the undo operation, or null if the operation doesn't exist.


getRedoLabel

public java.lang.String getRedoLabel()
returns a label describing the redo operation, or null if the operation doesn't exist.


resetHistory

public void resetHistory()

isIgnoringUpdates

public boolean isIgnoringUpdates()
Getter for property ignoringUpdates.

Returns:
Value of property ignoringUpdates.

setIgnoringUpdates

public void setIgnoringUpdates(boolean ignoringUpdates)
Setter for property ignoringUpdates.

Parameters:
ignoringUpdates - New value of property ignoringUpdates.