|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractCommand
org.jhotdraw.figures.InsertImageCommand
public class InsertImageCommand
Command to insert a named image.
Nested Class Summary | |
---|---|
class |
InsertImageCommand.UndoActivity
|
Nested classes/interfaces inherited from class org.jhotdraw.standard.AbstractCommand |
---|
AbstractCommand.EventDispatcher |
Constructor Summary | |
---|---|
InsertImageCommand(java.lang.String name,
java.lang.String newImageName,
DrawingEditor newDrawingEditor)
Constructs an insert image command. |
Method Summary | |
---|---|
void |
execute()
Executes the command. |
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 |
---|
public InsertImageCommand(java.lang.String name, java.lang.String newImageName, DrawingEditor newDrawingEditor)
name
- the command namenewImageName
- the pathname of the imagenewDrawingEditor
- the DrawingEditor which manages the viewsMethod Detail |
---|
public void execute()
AbstractCommand
execute
in interface Command
execute
in class AbstractCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |