|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.util.UndoableAdapter
org.jhotdraw.standard.CutCommand.UndoActivity
public static class CutCommand.UndoActivity
Constructor Summary | |
---|---|
CutCommand.UndoActivity(FigureTransferCommand newCommand)
Constructor for UndoActivity . |
Method Summary | |
---|---|
FigureEnumeration |
getSelectedFigures()
Returns the selection of figures to perform the command on. |
int |
getSelectedFiguresCount()
Returns the size of the selection. |
boolean |
redo()
Redo the activity |
void |
release()
Releases all resources related to an undoable activity |
void |
setSelectedFigures(FigureEnumeration newSelectedFigures)
Preserve the selection of figures the moment the command was executed. |
boolean |
undo()
Undo the activity |
Methods inherited from class org.jhotdraw.util.UndoableAdapter |
---|
getAffectedFigures, getAffectedFiguresCount, getAffectedFiguresReversed, getDrawingView, isRedoable, isUndoable, setAffectedFigures, setRedoable, setUndoable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CutCommand.UndoActivity(FigureTransferCommand newCommand)
UndoActivity
.
newCommand
- Method Detail |
---|
public boolean undo()
UndoableAdapter
undo
in interface Undoable
undo
in class UndoableAdapter
Undoable.undo()
public boolean redo()
UndoableAdapter
redo
in interface Undoable
redo
in class UndoableAdapter
Undoable.redo()
public void setSelectedFigures(FigureEnumeration newSelectedFigures)
newSelectedFigures
- public FigureEnumeration getSelectedFigures()
public int getSelectedFiguresCount()
public void release()
UndoableAdapter
release
in interface Undoable
release
in class UndoableAdapter
UndoableAdapter.release()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |