hades.gui
Class DeleteAllCommand

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

DeleteAllCommand - delete all objects from an HADES Design.

See Also:
Serialized Form

Field Summary
(package private)  java.util.Hashtable c_table
           
(package private)  java.util.Hashtable s_table
           
 
Fields inherited from class hades.gui.Command
console, debug, editor, ready, versionString
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DeleteAllCommand(Editor editor)
          construct an DeleteAllCommand, before we know whether to delete a component (SimObject) or a Signal.
 
Method Summary
 void execute()
          perform the action corresponding to this DeleteAllCommand object and register it with the UndoStack.
 java.lang.String getDescription()
           
 boolean isReady()
          check whether the current DeleteAllCommand object is ready (has all required parameters, etc.).
 void mousePressed(FigCanvasEvent ME)
          extract the screen and world coordinates of this Event, and dispatch to setPosition().
 void setPosition(java.awt.Point SP, java.awt.Point WP)
          the following method is used to pass the (snapped!) coordinates of an MouseEvent to a Command object.
 java.lang.String toString()
          toString(): identify this DeleteAllCommand
 void undo()
          try to undo the action corresponding to this DeleteAllCommand object.
 
Methods inherited from class hades.gui.Command
actionPerformed, cancel, dbg, getLogExtraArguments, initialize, keyPressed, keyReleased, keyTyped, message, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, 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

c_table

java.util.Hashtable c_table

s_table

java.util.Hashtable s_table
Constructor Detail

DeleteAllCommand

public DeleteAllCommand(Editor editor)
construct an DeleteAllCommand, before we know whether to delete a component (SimObject) or a Signal.

Method Detail

isReady

public boolean isReady()
check whether the current DeleteAllCommand object is ready (has all required parameters, etc.). Note that an DeleteAllCommand is always ready.

Overrides:
isReady in class Command

execute

public void execute()
perform the action corresponding to this DeleteAllCommand object and register it with the UndoStack.

Overrides:
execute in class Command

undo

public void undo()
try to undo the action corresponding to this DeleteAllCommand object.

Overrides:
undo in class Command

mousePressed

public void mousePressed(FigCanvasEvent ME)
extract the screen and world coordinates of this Event, and dispatch to setPosition().

Specified by:
mousePressed in interface FigCanvasListener
Overrides:
mousePressed in class Command

setPosition

public void setPosition(java.awt.Point SP,
                        java.awt.Point WP)
Description copied from class: Command
the following method is used to pass the (snapped!) coordinates of an MouseEvent to a Command object.

Overrides:
setPosition in class Command

toString

public java.lang.String toString()
toString(): identify this DeleteAllCommand

Overrides:
toString in class Command

getDescription

public java.lang.String getDescription()
Overrides:
getDescription in class Command