hades.gui
Class DeleteProbeFromSignalCommand

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

DeleteProbeFromSignalCommand - delete a Waveform probe from a Signal

See Also:
Serialized Form

Field Summary
(package private)  ObjectCanvas canvas
           
(package private)  java.awt.Point pos1
           
(package private)  ProbeSymbol probeSymbol
           
(package private)  Signal signal
           
(package private)  Waveform waveform
           
 
Fields inherited from class hades.gui.Command
console, debug, editor, ready, versionString
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DeleteProbeFromSignalCommand(Editor editor)
          The standard constructor for a DeleteProbeFromSignalCommand
 
Method Summary
 void execute()
          delete the probe and register this command with the UndoStack
 java.lang.String getDescription()
           
 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)
          We expect the position of a vertex of the Signal whose probe shall be removed.
 java.lang.String toString()
          toString(): identify this DeleteProbeFromSignalCommand
 void undo()
          undo the action corresponding to this DeleteProbeFromSignalCommand: not yet...
 
Methods inherited from class hades.gui.Command
actionPerformed, cancel, dbg, getLogExtraArguments, initialize, isReady, 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

pos1

java.awt.Point pos1

signal

Signal signal

waveform

Waveform waveform

canvas

ObjectCanvas canvas

probeSymbol

ProbeSymbol probeSymbol
Constructor Detail

DeleteProbeFromSignalCommand

public DeleteProbeFromSignalCommand(Editor editor)
The standard constructor for a DeleteProbeFromSignalCommand

Method Detail

execute

public void execute()
delete the probe and register this command with the UndoStack

Overrides:
execute in class Command

undo

public void undo()
undo the action corresponding to this DeleteProbeFromSignalCommand: not yet...

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)
We expect the position of a vertex of the Signal whose probe shall be removed.

Overrides:
setPosition in class Command

toString

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

Overrides:
toString in class Command

getDescription

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