Documentation of 'org.jgraph.graph.GraphUndoManager' Java class
GraphUndoManager
org.jgraph.graph

Class GraphUndoManager

  • All Implemented Interfaces:
    java.io.Serializable, java.util.EventListener, javax.swing.event.UndoableEditListener, javax.swing.undo.UndoableEdit


    public class GraphUndoManager
    extends javax.swing.undo.UndoManager
    An UndoManager that may be shared among multiple GraphLayoutCache's.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      GraphUndoManager() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean canRedo(java.lang.Object source)
      Overridden to preserve usual semantics: returns true if a redo operation would be successful now for the given view, false otherwise
      boolean canUndo(java.lang.Object source)
      Overridden to preserve usual semantics: returns true if an undo operation would be successful now for the given view, false otherwise
      void redo(java.lang.Object source)
      If this UndoManager is inProgress, redoes the last significant UndoableEdit with respect to source or after, and all insignificant edits up to it.
      void undo(java.lang.Object source)
      If this UndoManager is inProgress, undo the last significant UndoableEdit wrt to source, and all insignificant edits back to it.
      • Methods inherited from class javax.swing.undo.UndoManager

        addEdit, canRedo, canUndo, canUndoOrRedo, discardAllEdits, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redo, setLimit, toString, undo, undoableEditHappened, undoOrRedo
      • Methods inherited from class javax.swing.undo.CompoundEdit

        die, getPresentationName, isInProgress, isSignificant
      • Methods inherited from class javax.swing.undo.AbstractUndoableEdit

        replaceEdit
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GraphUndoManager

        public GraphUndoManager()
    • Method Detail

      • canUndo

        public boolean canUndo(java.lang.Object source)
        Overridden to preserve usual semantics: returns true if an undo operation would be successful now for the given view, false otherwise
      • canRedo

        public boolean canRedo(java.lang.Object source)
        Overridden to preserve usual semantics: returns true if a redo operation would be successful now for the given view, false otherwise
      • undo

        public void undo(java.lang.Object source)
        If this UndoManager is inProgress, undo the last significant UndoableEdit wrt to source, and all insignificant edits back to it. Updates indexOfNextAdd accordingly.

        If not inProgress, indexOfNextAdd is ignored and super's routine is called.

        See Also:
        UndoManager.undo()
      • redo

        public void redo(java.lang.Object source)
        If this UndoManager is inProgress, redoes the last significant UndoableEdit with respect to source or after, and all insignificant edits up to it. Updates indexOfNextAdd accordingly.

        If not inProgress, indexOfNextAdd is ignored and super's routine is called.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.