|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.util.UndoableAdapter
public class UndoableAdapter
Most basic implementation for an Undoable activity. Subclasses should override methods to provide specialized behaviour when necessary.
Constructor Summary | |
---|---|
UndoableAdapter(DrawingView newDrawingView)
|
Method Summary | |
---|---|
FigureEnumeration |
getAffectedFigures()
|
int |
getAffectedFiguresCount()
|
FigureEnumeration |
getAffectedFiguresReversed()
|
DrawingView |
getDrawingView()
|
boolean |
isRedoable()
|
boolean |
isUndoable()
|
boolean |
redo()
Redo the activity |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UndoableAdapter(DrawingView newDrawingView)
Method Detail |
---|
public boolean undo()
undo
in interface Undoable
public boolean redo()
redo
in interface Undoable
public boolean isUndoable()
isUndoable
in interface Undoable
public void setUndoable(boolean newIsUndoable)
setUndoable
in interface Undoable
public boolean isRedoable()
isRedoable
in interface Undoable
public void setRedoable(boolean newIsRedoable)
setRedoable
in interface Undoable
public void setAffectedFigures(FigureEnumeration newAffectedFigures)
setAffectedFigures
in interface Undoable
public FigureEnumeration getAffectedFigures()
getAffectedFigures
in interface Undoable
public FigureEnumeration getAffectedFiguresReversed()
public int getAffectedFiguresCount()
getAffectedFiguresCount
in interface Undoable
public void release()
release
in interface Undoable
public DrawingView getDrawingView()
getDrawingView
in interface Undoable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |