JHotDraw 6.0b1

org.jhotdraw.util
Class RedoCommand

java.lang.Object
  extended by org.jhotdraw.standard.AbstractCommand
      extended by org.jhotdraw.util.RedoCommand
All Implemented Interfaces:
FigureSelectionListener, Command

public class RedoCommand
extends AbstractCommand

Command to redo the latest undone change in the drawing.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jhotdraw.standard.AbstractCommand
AbstractCommand.EventDispatcher
 
Constructor Summary
RedoCommand(java.lang.String name, DrawingEditor newDrawingEditor)
          Constructs a properties command.
 
Method Summary
 void execute()
          Executes the command.
 boolean isExecutableWithView()
          Used in enabling the redo menu item.
 
Methods inherited from class org.jhotdraw.standard.AbstractCommand
addCommandListener, createEventDispatcher, createViewChangeListener, dispose, figureSelectionChanged, getDrawingEditor, getEventDispatcher, getUndoActivity, isExecutable, isViewRequired, name, removeCommandListener, setName, setUndoActivity, view, viewCreated, viewDestroying, viewSelectionChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedoCommand

public RedoCommand(java.lang.String name,
                   DrawingEditor newDrawingEditor)
Constructs a properties command.

Parameters:
name - the command name
newDrawingEditor - the DrawingEditor which manages the views
Method Detail

execute

public void execute()
Description copied from class: AbstractCommand
Executes the command.

Specified by:
execute in interface Command
Overrides:
execute in class AbstractCommand

isExecutableWithView

public boolean isExecutableWithView()
Used in enabling the redo menu item. Redo menu item will be enabled only when there is at least one redoable activity in the UndoManager.

Overrides:
isExecutableWithView in class AbstractCommand

JHotDraw 6.0b1