|
UML | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
org.topcased.modeler.uml.sequencediagram.commands.reconnect.GraphEdgeReconnectCommand
public class GraphEdgeReconnectCommand
Comand to reconnect the graph edge
Constructor Summary | |
---|---|
GraphEdgeReconnectCommand(BaseEditPart newEdit,
MessageEditPart edgeEdit,
boolean isStart,
org.eclipse.draw2d.geometry.Point newP)
Constructor |
Method Summary | |
---|---|
void |
execute()
get the old values and set the new ones |
GraphEdge |
getGraphEdge()
Get the graph edge |
GraphEdgeEditPart |
getGraphEdgeEdit()
Get the edit part of the edge |
GraphNode |
getNewNode()
Get the new node |
BaseEditPart |
getNewNodeEdit()
Get the edit part of the new node |
org.eclipse.draw2d.geometry.Point |
getNewPos()
Get the new position |
GraphNode |
getOldNode()
Get the old graph node |
BaseEditPart |
getOldNodeEdit()
Get the edit part of the old node |
org.eclipse.draw2d.geometry.Point |
getOldPos()
Get the old position |
protected void |
getOldValues()
Get the old values |
boolean |
isMovingStartAnchor()
Return if this is start anchor which is moved |
void |
redo()
Graphically reconnect the message |
protected void |
setModelValues()
Set the values on the model. |
void |
setNewPos(org.eclipse.draw2d.geometry.Point newP)
Set the new position |
protected void |
setValues()
Set the new values |
protected void |
switchValues()
Swicth bewteen the old and new values |
void |
undo()
Undo the reconnection graphically |
Methods inherited from class org.eclipse.gef.commands.Command |
---|
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphEdgeReconnectCommand(BaseEditPart newEdit, MessageEditPart edgeEdit, boolean isStart, org.eclipse.draw2d.geometry.Point newP)
newEdit
- the edit part of the new receiving nodeedgeEdit
- the edit part of the graph edgeisStart
- set it to true if the source is reconnectednewP
- the new position of the connectorMethod Detail |
---|
public boolean isMovingStartAnchor()
public GraphEdge getGraphEdge()
public GraphNode getNewNode()
public BaseEditPart getNewNodeEdit()
public GraphNode getOldNode()
public BaseEditPart getOldNodeEdit()
public GraphEdgeEditPart getGraphEdgeEdit()
public org.eclipse.draw2d.geometry.Point getNewPos()
public void setNewPos(org.eclipse.draw2d.geometry.Point newP)
newP
- the new positionpublic org.eclipse.draw2d.geometry.Point getOldPos()
protected void getOldValues()
protected void setValues()
protected void setModelValues()
protected void switchValues()
public void execute()
execute
in class org.eclipse.gef.commands.Command
Command.execute()
public void redo()
redo
in class org.eclipse.gef.commands.Command
Command.redo()
public void undo()
undo
in class org.eclipse.gef.commands.Command
Command.undo()
|
UML | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.