|
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.GraphEdgeMoveCommand
public class GraphEdgeMoveCommand
Command that moves a graph edge
Constructor Summary | |
---|---|
GraphEdgeMoveCommand(GraphEdgeEditPart edgeEdit,
org.eclipse.draw2d.geometry.Point initialPos,
org.eclipse.draw2d.geometry.Point newPos)
Constructor |
Method Summary | |
---|---|
void |
execute()
Get the old values then set the new values |
GraphEdgeEditPart |
getGraphEdgeEdit()
Return the edit part of the graph edge |
org.eclipse.draw2d.geometry.Point |
getNewSourcePosition()
Return the new position of the source |
org.eclipse.draw2d.geometry.Point |
getNewTargetPosition()
Return the new position of the target |
protected void |
getValues()
Get the old and new values |
void |
redo()
Set the new values |
protected void |
setModelValues()
Set the values on the model. |
protected void |
setValues()
Set the values on the edge |
protected void |
switchValues()
Swicth between the new and old values |
void |
undo()
Set the old values |
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 GraphEdgeMoveCommand(GraphEdgeEditPart edgeEdit, org.eclipse.draw2d.geometry.Point initialPos, org.eclipse.draw2d.geometry.Point newPos)
edgeEdit
- the edit part of the graph edge to moveinitialPos
- the initial position of the connectionnewPos
- the new position of the connectionMethod Detail |
---|
public GraphEdgeEditPart getGraphEdgeEdit()
public org.eclipse.draw2d.geometry.Point getNewSourcePosition()
public org.eclipse.draw2d.geometry.Point getNewTargetPosition()
protected void getValues()
protected void setValues()
protected void switchValues()
protected void setModelValues()
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.