org.jhotdraw.standard
Class AlignCommand.UndoActivity

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

public static class AlignCommand.UndoActivity
extends UndoableAdapter


Constructor Summary
AlignCommand.UndoActivity(DrawingView newView, AlignCommand.Alignment newAlignment)
           
 
Method Summary
 void alignAffectedFigures(AlignCommand.Alignment applyAlignment)
           
 AlignCommand.Alignment getAppliedAlignment()
           
 java.awt.Point getOriginalPoint(Figure f)
           
 boolean redo()
          Redo the activity
 void setAffectedFigures(FigureEnumeration fe)
           
 boolean undo()
          Undo the activity
 
Methods inherited from class org.jhotdraw.util.UndoableAdapter
getAffectedFigures, getAffectedFiguresCount, getAffectedFiguresReversed, getDrawingView, isRedoable, isUndoable, release, setRedoable, setUndoable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlignCommand.UndoActivity

public AlignCommand.UndoActivity(DrawingView newView,
                                 AlignCommand.Alignment newAlignment)
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

getAppliedAlignment

public AlignCommand.Alignment getAppliedAlignment()

getOriginalPoint

public java.awt.Point getOriginalPoint(Figure f)

alignAffectedFigures

public void alignAffectedFigures(AlignCommand.Alignment applyAlignment)

setAffectedFigures

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