JHotDraw 6.0b1

org.jhotdraw.contrib.dnd
Class JHDDropTargetListener.AddUndoActivity

java.lang.Object
  extended by org.jhotdraw.util.UndoableAdapter
      extended by org.jhotdraw.contrib.dnd.JHDDropTargetListener.AddUndoActivity
All Implemented Interfaces:
Undoable
Enclosing class:
JHDDropTargetListener

public static class JHDDropTargetListener.AddUndoActivity
extends UndoableAdapter


Constructor Summary
JHDDropTargetListener.AddUndoActivity(DrawingView newDrawingView)
           
 
Method Summary
 boolean redo()
          Redo the activity
 void release()
          Since this is an add operation, figures can only be released if it has been undone.
 boolean undo()
          Undo the activity
 
Methods inherited from class org.jhotdraw.util.UndoableAdapter
duplicateAffectedFigures, getAffectedFigures, getAffectedFiguresCount, getAffectedFiguresReversed, getDrawingView, isRedoable, isUndoable, rememberFigures, setAffectedFigures, setDrawingView, setRedoable, setUndoable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JHDDropTargetListener.AddUndoActivity

public JHDDropTargetListener.AddUndoActivity(DrawingView newDrawingView)
Method Detail

undo

public boolean undo()
Description copied from class: UndoableAdapter
Undo the activity

Specified by:
undo in interface Undoable
Overrides:
undo in class UndoableAdapter
Returns:
true if the activity could be undone, false otherwise

redo

public boolean redo()
Description copied from class: UndoableAdapter
Redo the activity

Specified by:
redo in interface Undoable
Overrides:
redo in class UndoableAdapter
Returns:
true if the activity could be redone, false otherwise

release

public void release()
Since this is an add operation, figures can only be released if it has been undone.

Specified by:
release in interface Undoable
Overrides:
release in class UndoableAdapter

JHotDraw 6.0b1