JHotDraw 6.0b1

org.jhotdraw.standard
Class ChangeAttributeCommand.UndoActivity

java.lang.Object
  extended by org.jhotdraw.util.UndoableAdapter
      extended by org.jhotdraw.standard.ChangeAttributeCommand.UndoActivity
All Implemented Interfaces:
Undoable
Enclosing class:
ChangeAttributeCommand

public static class ChangeAttributeCommand.UndoActivity
extends UndoableAdapter


Constructor Summary
ChangeAttributeCommand.UndoActivity(DrawingView newDrawingView, FigureAttributeConstant newUndoAttribute, java.lang.Object newUndoValue)
           
 
Method Summary
protected  void addOriginalValue(Figure affectedFigure, java.lang.Object newOriginalValue)
           
 FigureAttributeConstant getAttribute()
           
 java.lang.Object getBackupValue()
           
protected  java.lang.Object getOriginalValue(Figure lookupAffectedFigure)
           
 boolean redo()
          Redo the activity
 void release()
          Releases all resources related to an undoable activity
 void setAffectedFigures(FigureEnumeration fe)
           
protected  void setAttribute(FigureAttributeConstant newUndoAttribute)
           
protected  void setBackupValue(java.lang.Object newUndoValue)
           
 boolean undo()
          Undo the activity
 
Methods inherited from class org.jhotdraw.util.UndoableAdapter
duplicateAffectedFigures, getAffectedFigures, getAffectedFiguresCount, getAffectedFiguresReversed, getDrawingView, isRedoable, isUndoable, rememberFigures, setDrawingView, setRedoable, setUndoable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeAttributeCommand.UndoActivity

public ChangeAttributeCommand.UndoActivity(DrawingView newDrawingView,
                                           FigureAttributeConstant newUndoAttribute,
                                           java.lang.Object newUndoValue)
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

addOriginalValue

protected void addOriginalValue(Figure affectedFigure,
                                java.lang.Object newOriginalValue)

getOriginalValue

protected java.lang.Object getOriginalValue(Figure lookupAffectedFigure)

setAttribute

protected void setAttribute(FigureAttributeConstant newUndoAttribute)

getAttribute

public FigureAttributeConstant getAttribute()

setBackupValue

protected void setBackupValue(java.lang.Object newUndoValue)

getBackupValue

public java.lang.Object getBackupValue()

release

public void release()
Description copied from class: UndoableAdapter
Releases all resources related to an undoable activity

Specified by:
release in interface Undoable
Overrides:
release in class UndoableAdapter

setAffectedFigures

public void setAffectedFigures(FigureEnumeration fe)
Specified by:
setAffectedFigures in interface Undoable
Overrides:
setAffectedFigures in class UndoableAdapter

JHotDraw 6.0b1