Class CanvasUndoRedo

  • All Implemented Interfaces:
    org.openide.awt.UndoRedo

    public class CanvasUndoRedo
    extends Object
    implements org.openide.awt.UndoRedo
    It is only wrapper for kiyut.sketsa.undo.DOMUndoManager
    Author:
    KIYUT
    • Field Detail

      • changeSupport

        protected org.openide.util.ChangeSupport changeSupport
    • Constructor Detail

      • CanvasUndoRedo

        public CanvasUndoRedo​(VectorCanvas canvas)
        Creates a new instance of CanvasUndoRedo
        Parameters:
        canvas - VectorCanvas
    • Method Detail

      • addChangeListener

        public void addChangeListener​(ChangeListener l)
        Specified by:
        addChangeListener in interface org.openide.awt.UndoRedo
      • removeChangeListener

        public void removeChangeListener​(ChangeListener l)
        Specified by:
        removeChangeListener in interface org.openide.awt.UndoRedo
      • canUndo

        public boolean canUndo()
        Specified by:
        canUndo in interface org.openide.awt.UndoRedo
      • canRedo

        public boolean canRedo()
        Specified by:
        canRedo in interface org.openide.awt.UndoRedo
      • getUndoPresentationName

        public String getUndoPresentationName()
        Specified by:
        getUndoPresentationName in interface org.openide.awt.UndoRedo
      • getRedoPresentationName

        public String getRedoPresentationName()
        Specified by:
        getRedoPresentationName in interface org.openide.awt.UndoRedo