hades.gui
Class OpenDesignCommand
java.lang.Object
java.util.EventObject
hades.gui.Command
hades.gui.OpenDesignCommand
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, FigCanvasListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable
- public class OpenDesignCommand
- extends Command
OpenDesignCommand - load a new Design into the HADES editor
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
void |
execute()
perform the action corresponding to this OpenDesignCommand object
and register it with the UndoStack. |
java.lang.String |
getDescription()
|
boolean |
initialize(java.lang.String s)
|
java.lang.String |
toString()
toString(): identify this OpenDesignCommand |
void |
undo()
try to undo the action corresponding to this OpenDesignCommand object. |
Methods inherited from class hades.gui.Command |
actionPerformed, cancel, dbg, getLogExtraArguments, isReady, keyPressed, keyReleased, keyTyped, message, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mousePressed, mouseReleased, setPosition, statusMessage, writePositionLogMessage |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
oldPos
java.awt.Point oldPos
newPos
java.awt.Point newPos
newDesign
Design newDesign
oldDesign
Design oldDesign
oldSimulator
SimKernel oldSimulator
resourcename
java.lang.String resourcename
canvas
ObjectCanvas canvas
OpenDesignCommand
public OpenDesignCommand(Editor editor)
execute
public void execute()
- perform the action corresponding to this OpenDesignCommand object
and register it with the UndoStack.
- Overrides:
execute
in class Command
undo
public void undo()
- try to undo the action corresponding to this OpenDesignCommand object.
- Overrides:
undo
in class Command
initialize
public boolean initialize(java.lang.String s)
- Overrides:
initialize
in class Command
toString
public java.lang.String toString()
- toString(): identify this OpenDesignCommand
- Overrides:
toString
in class Command
getDescription
public java.lang.String getDescription()
- Overrides:
getDescription
in class Command