|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.commands.MiCommandHandler
com.swfm.mica.commands.MiPositionPartsCommand
| Field Summary |
| Constructor Summary | |
MiPositionPartsCommand()
|
|
MiPositionPartsCommand(MiEditor editor,
MiPart positionedPart,
DoubleVector originalXYPoints,
DoubleVector newXYPoints,
IntVector originalNumPtsEachConnection,
IntVector newNumPtsEachConnection)
|
|
MiPositionPartsCommand(MiEditor editor,
MiParts positionedParts,
DoubleVector originalXYPoints,
DoubleVector newXYPoints,
IntVector originalNumPtsEachConnection,
IntVector newNumPtsEachConnection)
|
|
| Method Summary | |
java.lang.String |
getCommand()
Gets the command perfromed by this transaction. |
MiEditor |
getEditor()
|
java.lang.String |
getName()
Gets the name of this transaction. |
DoubleVector |
getNewPositions()
|
DoubleVector |
getOriginalPositions()
|
static void |
getPositions(MiParts components,
DoubleVector positions,
IntVector numPointsEachConnection)
|
MiParts |
getSources()
Gets the parts used by this transaction. |
MiParts |
getTargets()
Gets the targets of this transaction. |
boolean |
isRepeatable()
Gets whether this transaction is repeatable. |
boolean |
isUndoable()
Gets whether this transaction is undoable. |
void |
processCommand(MiEditor editor,
MiParts positionedParts,
DoubleVector originalXYPoints,
DoubleVector newXYPoints,
IntVector originalNumPtsEachConnection,
IntVector newNumPtsEachConnection)
|
void |
processCommand(java.lang.String cmd)
Processes the given command. |
void |
redo()
Redoes this transaction. |
void |
repeat()
Repeats this transaction. |
void |
setNewPositions(DoubleVector xyPoints)
|
void |
setOriginalPositions(DoubleVector xyPoints)
|
void |
undo()
Undoes this transaction. |
| Methods inherited from class com.swfm.mica.commands.MiCommandHandler |
getTargetOfCommand, setTargetOfCommand |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MiPositionPartsCommand()
public MiPositionPartsCommand(MiEditor editor,
MiPart positionedPart,
DoubleVector originalXYPoints,
DoubleVector newXYPoints,
IntVector originalNumPtsEachConnection,
IntVector newNumPtsEachConnection)
public MiPositionPartsCommand(MiEditor editor,
MiParts positionedParts,
DoubleVector originalXYPoints,
DoubleVector newXYPoints,
IntVector originalNumPtsEachConnection,
IntVector newNumPtsEachConnection)
editor - the editororiginalXYPoints - the centers of all nodes and the
positions of all points of all
connections in the list of positionedParts
(excluding the first and/or last points
of connections that are connected to some
node.newXYPoints - the centers of all nodes and the
positions of all points of all
connections in the list of positionedParts
(excluding the first and/or last points
of connections that are connected to some
node.| Method Detail |
public MiEditor getEditor()
public void setOriginalPositions(DoubleVector xyPoints)
public DoubleVector getOriginalPositions()
public void setNewPositions(DoubleVector xyPoints)
public DoubleVector getNewPositions()
public void processCommand(java.lang.String cmd)
MiiCommandHandler
processCommand in interface MiiCommandHandler
public void processCommand(MiEditor editor,
MiParts positionedParts,
DoubleVector originalXYPoints,
DoubleVector newXYPoints,
IntVector originalNumPtsEachConnection,
IntVector newNumPtsEachConnection)
public static void getPositions(MiParts components,
DoubleVector positions,
IntVector numPointsEachConnection)
public java.lang.String getName()
getName in interface MiiTransactionpublic java.lang.String getCommand()
getCommand in interface MiiTransactionpublic void redo()
redo in interface MiiTransactionpublic void undo()
undo in interface MiiTransactionpublic void repeat()
repeat in interface MiiTransactionpublic boolean isUndoable()
isUndoable in interface MiiTransactionpublic boolean isRepeatable()
isRepeatable in interface MiiTransactionpublic MiParts getTargets()
getTargets in interface MiiTransactionpublic MiParts getSources()
getSources in interface MiiTransaction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||