|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
hades.gui.Command
hades.gui.DeleteSegmentFromSignalCommand
DeleteSegmentFromSignalCommand - delete a segment from a Signal
Field Summary | |
(package private) ObjectCanvas |
canvas
|
(package private) WireSegment |
segment
|
(package private) Signal |
signal
|
Fields inherited from class hades.gui.Command |
console, debug, editor, ready, versionString |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
DeleteSegmentFromSignalCommand(Editor editor)
the default Command-object constructor: specify our Editor |
Method Summary | |
void |
execute()
delete the selected wire segment, construct the Signal connectivity graph, and rebuild the Signal. |
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)
the following method is used to pass the (snapped!) coordinates of an MouseEvent to a Command object. |
java.lang.String |
toString()
toString(): identify this DeleteSegmentFromSignalCommand |
void |
undo()
At the moment, we cannot undo a DeleteSegmentFromSignalCommand... |
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 |
WireSegment segment
Signal signal
ObjectCanvas canvas
Constructor Detail |
public DeleteSegmentFromSignalCommand(Editor editor)
Method Detail |
public void execute()
execute
in class Command
public void undo()
undo
in class Command
public void mousePressed(FigCanvasEvent ME)
mousePressed
in interface FigCanvasListener
mousePressed
in class Command
public void setPosition(java.awt.Point SP, java.awt.Point WP)
Command
setPosition
in class Command
public java.lang.String toString()
toString
in class Command
public java.lang.String getDescription()
getDescription
in class Command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |