org.jhotdraw.standard
Class ChangeAttributeCommand

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

public class ChangeAttributeCommand
extends AbstractCommand

Command to change a named figure attribute.

Version:
<$CURRENT_VERSION$>

Nested Class Summary
static class ChangeAttributeCommand.UndoActivity
           
 
Nested classes/interfaces inherited from class org.jhotdraw.standard.AbstractCommand
AbstractCommand.EventDispatcher
 
Constructor Summary
ChangeAttributeCommand(java.lang.String name, FigureAttributeConstant attribute, java.lang.Object value, DrawingEditor newDrawingEditor)
          Constructs a change attribute command.
 
Method Summary
 void execute()
          Executes the command.
 boolean isExecutableWithView()
           
 
Methods inherited from class org.jhotdraw.standard.AbstractCommand
addCommandListener, dispose, figureSelectionChanged, getDrawingEditor, getUndoActivity, isExecutable, name, removeCommandListener, setName, setUndoActivity, view
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeAttributeCommand

public ChangeAttributeCommand(java.lang.String name,
                              FigureAttributeConstant attribute,
                              java.lang.Object value,
                              DrawingEditor newDrawingEditor)
Constructs a change attribute command.

Parameters:
name - the command name
attribute - the attribute to be changed
value - the new attribute value
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()