JHotDraw 6.0b1

org.jhotdraw.util
Interface Undoable

All Known Implementing Classes:
AlignCommand.UndoActivity, BorderTool.UndoActivity, BringToFrontCommand.UndoActivity, ChangeAttributeCommand.UndoActivity, ChangeConnectionEndHandle.UndoActivity, ChangeConnectionHandle.UndoActivity, ChangeConnectionStartHandle.UndoActivity, ConnectedTextTool.DeleteUndoActivity, ConnectedTextTool.UndoActivity, ConnectionTool.UndoActivity, CutCommand.UndoActivity, DeleteCommand.UndoActivity, DragTracker.UndoActivity, FontSizeHandle.UndoActivity, GroupCommand.UndoActivity, InsertImageCommand.UndoActivity, JHDDragSourceListener.RemoveUndoActivity, JHDDropTargetListener.AddUndoActivity, PasteCommand.UndoActivity, PolygonHandle.UndoActivity, PolyLineHandle.UndoActivity, SelectAllCommand.UndoActivity, SendToBackCommand.UndoActivity, TextAreaTool.UndoActivity, TextTool.UndoActivity, UndoableAdapter, UndoRedoActivity, UngroupCommand.UndoActivity

public interface Undoable


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

boolean undo()
Undo the activity

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

redo

boolean redo()

isUndoable

boolean isUndoable()

setUndoable

void setUndoable(boolean newIsUndoable)

isRedoable

boolean isRedoable()

setRedoable

void setRedoable(boolean newIsRedoable)

release

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


getDrawingView

DrawingView getDrawingView()

setAffectedFigures

void setAffectedFigures(FigureEnumeration newAffectedFigures)

getAffectedFigures

FigureEnumeration getAffectedFigures()

getAffectedFiguresCount

int getAffectedFiguresCount()

JHotDraw 6.0b1