|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractCommand
org.jhotdraw.standard.ChangeAttributeCommand
Command to change a named figure attribute.
Nested Class Summary | |
static class |
ChangeAttributeCommand.UndoActivity
|
Nested classes 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 | |
protected Undoable |
createUndoActivity()
Factory method for undo activity |
void |
execute()
Executes the command. |
boolean |
isExecutableWithView()
|
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 |
public ChangeAttributeCommand(java.lang.String name, FigureAttributeConstant attribute, java.lang.Object value, DrawingEditor newDrawingEditor)
name
- the command nameattribute
- the attribute to be changedvalue
- the new attribute valuenewDrawingEditor
- the DrawingEditor which manages the viewsMethod Detail |
public void execute()
AbstractCommand
execute
in interface Command
execute
in class AbstractCommand
public boolean isExecutableWithView()
isExecutableWithView
in class AbstractCommand
protected Undoable createUndoActivity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |