JHotDraw 6.0b1

org.jhotdraw.figures
Class TextTool.UndoActivity

java.lang.Object
  extended by org.jhotdraw.util.UndoableAdapter
      extended by org.jhotdraw.figures.TextTool.UndoActivity
All Implemented Interfaces:
Undoable
Direct Known Subclasses:
ConnectedTextTool.UndoActivity
Enclosing class:
TextTool

public static class TextTool.UndoActivity
extends UndoableAdapter


Constructor Summary
TextTool.UndoActivity(DrawingView newDrawingView, java.lang.String newOriginalText)
           
 
Method Summary
 java.lang.String getBackupText()
           
 java.lang.String getOriginalText()
           
protected  boolean isValidText(java.lang.String toBeChecked)
           
 boolean redo()
          Redo the activity
 void setBackupText(java.lang.String newBackupText)
           
 void setOriginalText(java.lang.String newOriginalText)
           
protected  void setText(java.lang.String newText)
           
 boolean undo()
          Undo the activity
 
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
 

Constructor Detail

TextTool.UndoActivity

public TextTool.UndoActivity(DrawingView newDrawingView,
                             java.lang.String newOriginalText)
Method Detail

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()

JHotDraw 6.0b1