|
||||||||||
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.MoveSelectionCommand
MoveSelectionCommand - move the selected SimObjects in a HADES Design. move all selected SimObjects and all (if any) selected WireSegments to a new position inside a HADES design schematic. status: incomplete. FIXME: Moving a selected WireSegment connected to a non-selected SimObject will correctly move the WireSegment but not dis-connect the WireSegment. This leads to inconsistent schematics. FIXME: no undo yet
Field Summary | |
(package private) java.awt.Point |
anchor
|
(package private) ObjectCanvas |
canvas
|
(package private) java.util.Hashtable |
syTable
|
(package private) java.awt.Point |
target
|
(package private) java.util.Hashtable |
wsTable
|
Fields inherited from class hades.gui.Command |
console, debug, editor, ready, versionString |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
MoveSelectionCommand(Editor editor)
create a new MoveSelectionCommand. |
Method Summary | |
void |
execute()
move the selected objects and register this command with the Undo stack. |
java.lang.String |
getDescription()
|
void |
markFirstPoint(WireSegment segment)
|
void |
markSecondPoint(WireSegment segment)
|
void |
markWireSegments(Signal signal,
java.awt.Point WP)
mark all WireSegments on "signal" that end on the "vertex" position. |
void |
markWireSegments(Symbol symbol,
Port port)
mark all WireSegments connected to "port" at "symbol". |
void |
mousePressed(FigCanvasEvent ME)
extract the screen and world coordinates of this Event, and dispatch to setPosition(). |
void |
moveFigObject(FigObject tmp)
|
void |
moveFirstPoint(WireSegment segment,
int dx,
int dy)
|
void |
moveSecondPoint(WireSegment segment,
int dx,
int dy)
|
void |
msg(java.lang.String s)
|
void |
setPosition(java.awt.Point SP,
java.awt.Point WP)
this method should be called twice for a move selection command. |
java.lang.String |
toString()
toString(): identify this MoveSelectionCommand |
void |
undo()
try to undo the action corresponding to this MoveSelectionCommand object. |
void |
unknownObject(java.lang.Object tmp)
|
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 |
java.awt.Point anchor
java.awt.Point target
ObjectCanvas canvas
java.util.Hashtable syTable
java.util.Hashtable wsTable
Constructor Detail |
public MoveSelectionCommand(Editor editor)
Method Detail |
public void execute()
execute
in class Command
public void markWireSegments(Symbol symbol, Port port)
public void markWireSegments(Signal signal, java.awt.Point WP)
public void markFirstPoint(WireSegment segment)
public void markSecondPoint(WireSegment segment)
public void moveFirstPoint(WireSegment segment, int dx, int dy)
public void moveSecondPoint(WireSegment segment, int dx, int dy)
public void moveFigObject(FigObject tmp)
public void unknownObject(java.lang.Object tmp)
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)
setPosition
in class Command
public java.lang.String toString()
toString
in class Command
public java.lang.String getDescription()
getDescription
in class Command
public void msg(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |