JHotDraw 6.0b1

org.jhotdraw.standard
Class SendToBackCommand.UndoActivity

java.lang.Object
  extended by org.jhotdraw.util.UndoableAdapter
      extended by org.jhotdraw.standard.SendToBackCommand.UndoActivity
All Implemented Interfaces:
Undoable
Direct Known Subclasses:
BringToFrontCommand.UndoActivity
Enclosing class:
SendToBackCommand

public static class SendToBackCommand.UndoActivity
extends UndoableAdapter


Constructor Summary
SendToBackCommand.UndoActivity(DrawingView newDrawingView)
           
 
Method Summary
protected  void addOriginalLayer(Figure affectedFigure, int newOriginalLayer)
           
protected  int getOriginalLayer(Figure lookupAffectedFigure)
           
 boolean redo()
          Redo the activity
protected  void sendToCommand(Figure f)
           
 void setAffectedFigures(FigureEnumeration fe)
           
 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

SendToBackCommand.UndoActivity

public SendToBackCommand.UndoActivity(DrawingView newDrawingView)
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

sendToCommand

protected void sendToCommand(Figure f)

addOriginalLayer

protected void addOriginalLayer(Figure affectedFigure,
                                int newOriginalLayer)

getOriginalLayer

protected int getOriginalLayer(Figure lookupAffectedFigure)

setAffectedFigures

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

JHotDraw 6.0b1