org.jhotdraw.util
Interface Undoable

All Known Implementing Classes:
UndoableAdapter, UndoRedoActivity

public interface Undoable

Version:
<$CURRENT_VERSION$>

Method Summary
 FigureEnumeration getAffectedFigures()
           
 int getAffectedFiguresCount()
           
 DrawingView getDrawingView()
           
 boolean isRedoable()
           
 boolean isUndoable()
           
 boolean redo()
           
 void release()
          Releases all resources related to an undoable activity
 void setAffectedFigures(FigureEnumeration newAffectedFigures)
           
 void setRedoable(boolean newIsRedoable)
           
 void setUndoable(boolean newIsUndoable)
           
 boolean undo()
          Undo the activity
 

Method Detail

undo

public boolean undo()
Undo the activity

Returns:
true if the activity could be undone, false otherwise

redo

public boolean redo()

isUndoable

public boolean isUndoable()

setUndoable

public void setUndoable(boolean newIsUndoable)

isRedoable

public boolean isRedoable()

setRedoable

public void setRedoable(boolean newIsRedoable)

release

public void release()
Releases all resources related to an undoable activity


getDrawingView

public DrawingView getDrawingView()

setAffectedFigures

public void setAffectedFigures(FigureEnumeration newAffectedFigures)

getAffectedFigures

public FigureEnumeration getAffectedFigures()

getAffectedFiguresCount

public int getAffectedFiguresCount()