diva.whiteboard
Class WhiteboardEdits.AddStrokeEdit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by diva.whiteboard.WhiteboardEdits.AddStrokeEdit
All Implemented Interfaces:
Serializable, UndoableEdit
Enclosing class:
WhiteboardEdits

public static class WhiteboardEdits.AddStrokeEdit
extends AbstractUndoableEdit

Add a stroke to the

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
WhiteboardEdits.AddStrokeEdit(SketchModel sm, Symbol s, MultipageModel mm)
           
 
Method Summary
 boolean canRedo()
           
 boolean canUndo()
           
 String getPresentationName()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WhiteboardEdits.AddStrokeEdit

public WhiteboardEdits.AddStrokeEdit(SketchModel sm,
                                     Symbol s,
                                     MultipageModel mm)
Method Detail

redo

public void redo()
          throws CannotRedoException
Specified by:
redo in interface UndoableEdit
Overrides:
redo in class AbstractUndoableEdit
Throws:
CannotRedoException

undo

public void undo()
          throws CannotUndoException
Specified by:
undo in interface UndoableEdit
Overrides:
undo in class AbstractUndoableEdit
Throws:
CannotUndoException

canRedo

public boolean canRedo()
Specified by:
canRedo in interface UndoableEdit
Overrides:
canRedo in class AbstractUndoableEdit

canUndo

public boolean canUndo()
Specified by:
canUndo in interface UndoableEdit
Overrides:
canUndo in class AbstractUndoableEdit

getPresentationName

public String getPresentationName()
Specified by:
getPresentationName in interface UndoableEdit
Overrides:
getPresentationName in class AbstractUndoableEdit


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.