org.jhotdraw.figures
Class TextTool.UndoActivity
java.lang.Object
org.jhotdraw.util.UndoableAdapter
org.jhotdraw.figures.TextTool.UndoActivity
- All Implemented Interfaces:
- Undoable
- Direct Known Subclasses:
- ConnectedTextTool.UndoActivity
- Enclosing class:
- TextTool
- public static class TextTool.UndoActivity
- extends UndoableAdapter
Methods inherited from class org.jhotdraw.util.UndoableAdapter |
duplicateAffectedFigures, getAffectedFigures, getAffectedFiguresCount, getAffectedFiguresReversed, getDrawingView, isRedoable, isUndoable, release, rememberFigures, setAffectedFigures, setDrawingView, setRedoable, setUndoable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextTool.UndoActivity
public TextTool.UndoActivity(DrawingView newDrawingView,
java.lang.String newOriginalText)
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
isValidText
protected boolean isValidText(java.lang.String toBeChecked)
setText
protected void setText(java.lang.String newText)
setBackupText
public void setBackupText(java.lang.String newBackupText)
getBackupText
public java.lang.String getBackupText()
setOriginalText
public void setOriginalText(java.lang.String newOriginalText)
getOriginalText
public java.lang.String getOriginalText()