JHotDraw 6.0b1

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
protected  void addOriginalPoint(Figure f)
           
 void alignAffectedFigures(AlignCommand.Alignment applyAlignment)
           
 AlignCommand.Alignment getAppliedAlignment()
           
 java.awt.Point getOriginalPoint(Figure f)
           
 boolean redo()
          Redo the activity
 void setAffectedFigures(FigureEnumeration fe)
           
protected  void setAppliedAlignment(AlignCommand.Alignment newAlignment)
           
 boolean undo()
          Undo the activity
 
Methods inherited from class org.jhotdraw.util.UndoableAdapter
duplicateAffectedFigures, getAffectedFigures, getAffectedFiguresCount, getAffectedFiguresReversed, getDrawingView, isRedoable, isUndoable, release, rememberFigures, setDrawingView, setRedoable, setUndoable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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

setAppliedAlignment

protected void setAppliedAlignment(AlignCommand.Alignment newAlignment)

getAppliedAlignment

public AlignCommand.Alignment getAppliedAlignment()

addOriginalPoint

protected void addOriginalPoint(Figure f)

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

JHotDraw 6.0b1