|
||||||||||
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.AddSegmentToSignalCommand
AddSegmentToSignalCommand - create and connect a Signal between SimObjects
Field Summary | |
(package private) ObjectCanvas |
canvas
|
(package private) int |
n_points
|
(package private) Port |
port
|
(package private) SolderDot |
sd
|
(package private) boolean |
shiftDown
|
(package private) Signal |
signal
|
(package private) java.awt.Point |
startPoint
|
(package private) FigCompound |
tmpCompound
|
(package private) Signal |
victim
|
(package private) WireSegment |
ws
|
Fields inherited from class hades.gui.Command |
console, debug, editor, ready, versionString |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
AddSegmentToSignalCommand(Editor editor)
Create an AddSegmentToSignalCommand in Editor 'editor' |
Method Summary | |
void |
cancel()
cancel addSegmentToSignal: we just delete the editor-TmpObject with the temporary WireSegments and request a redraw. |
void |
execute()
execute this AddSegmentToSignalCommand object and register it with the UndoStack. |
java.lang.String |
getDescription()
|
(package private) void |
insertVertexAt(Signal signal,
WireSegment originalSegment,
java.awt.Point newVertex)
|
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)
this method should be called twice for a copy command. |
java.lang.String |
toString()
toString(): identify this AddSegmentToSignalCommand |
void |
undo()
try to undo this AddSegmentToSignalCommand object: not yet! |
Methods inherited from class hades.gui.Command |
actionPerformed, 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 |
Signal signal
Signal victim
ObjectCanvas canvas
int n_points
WireSegment ws
SolderDot sd
Port port
java.awt.Point startPoint
FigCompound tmpCompound
boolean shiftDown
Constructor Detail |
public AddSegmentToSignalCommand(Editor editor)
Method Detail |
public void execute()
execute
in class Command
public void undo()
undo
in class Command
public void cancel()
cancel
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)
setPosition
in class Command
void insertVertexAt(Signal signal, WireSegment originalSegment, java.awt.Point newVertex)
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 |