hades.gui
Class OpenDesignCommand

java.lang.Object
  extended byjava.util.EventObject
      extended byhades.gui.Command
          extended byhades.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

Field Summary
(package private)  ObjectCanvas canvas
           
(package private)  Design newDesign
           
(package private)  java.awt.Point newPos
           
(package private)  Design oldDesign
           
(package private)  java.awt.Point oldPos
           
(package private)  SimKernel oldSimulator
           
(package private)  java.lang.String resourcename
           
 
Fields inherited from class hades.gui.Command
console, debug, editor, ready, versionString
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
OpenDesignCommand(Editor editor)
           
 
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
 

Field Detail

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
Constructor Detail

OpenDesignCommand

public OpenDesignCommand(Editor editor)
Method Detail

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