Documentation of 'com.mxgraph.util.mxUndoableEdit' Java class
mxUndoableEdit
com.mxgraph.util

Class mxUndoableEdit



  • public class mxUndoableEdit
    extends java.lang.Object
    Implements a 2-dimensional rectangle with double precision coordinates.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static interface  mxUndoableEdit.mxUndoableChange
      Defines the requirements for an undoable change.
    • Constructor Summary

      Constructors 
      Constructor and Description
      mxUndoableEdit(java.lang.Object source)
      Constructs a new undoable edit for the given source.
      mxUndoableEdit(java.lang.Object source, boolean significant)
      Constructs a new undoable edit for the given source.
    • Constructor Detail

      • mxUndoableEdit

        public mxUndoableEdit(java.lang.Object source)
        Constructs a new undoable edit for the given source.
      • mxUndoableEdit

        public mxUndoableEdit(java.lang.Object source,
                              boolean significant)
        Constructs a new undoable edit for the given source.
    • Method Detail

      • dispatch

        public void dispatch()
        Hook to notify any listeners of the changes after an undo or redo has been carried out. This implementation is empty.
      • die

        public void die()
        Hook to free resources after the edit has been removed from the command history. This implementation is empty.
      • getSource

        public java.lang.Object getSource()
        Returns:
        the source
      • isSignificant

        public boolean isSignificant()
        Returns:
        the significant
      • isUndone

        public boolean isUndone()
        Returns:
        the undone
      • isRedone

        public boolean isRedone()
        Returns:
        the redone
      • isEmpty

        public boolean isEmpty()
        Returns true if the this edit contains no changes.
      • add

        public void add(mxUndoableEdit.mxUndoableChange change)
        Adds the specified change to this edit. The change is an object that is expected to either have an undo and redo, or an execute function.
      • undo

        public void undo()
      • redo

        public void redo()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.