|
UML | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCreateTypedEdgeCommand
org.topcased.modeler.uml.sequencediagram.commands.MessageEdgeCreationCommand
public class MessageEdgeCreationCommand
Message edge creation command
Constructor Summary | |
---|---|
MessageEdgeCreationCommand(org.eclipse.gef.EditDomain domain,
GraphEdge newObj,
GraphElement src)
|
|
MessageEdgeCreationCommand(org.eclipse.gef.EditDomain domain,
GraphEdge newObj,
GraphElement src,
boolean needModelUpdate)
|
Method Summary | |
---|---|
org.eclipse.uml2.uml.Message |
getMessage()
Return the created message |
BaseEditPart |
getSourceEditPart()
Get the edit part of the source node |
org.eclipse.draw2d.geometry.Point |
getSourcePos()
Get the source position on the lifeline |
org.eclipse.uml2.uml.Lifeline |
getSrcLifeline()
Get the source lifeline. |
BaseEditPart |
getTargetEditPart()
Get the edit part of the target node |
org.eclipse.uml2.uml.Lifeline |
getTargetLifeline()
Get the target lifeline. |
org.eclipse.draw2d.geometry.Point |
getTargetPos()
Get the target position on the lifeline |
void |
redo()
Set graphic properties |
protected void |
redoModel()
|
void |
setSourceEditPart(BaseEditPart source)
Set the edit part of the source node |
void |
setSourcePos(org.eclipse.draw2d.geometry.Point srcPos)
Set the source position of the edge |
void |
setTargetEditPart(BaseEditPart target)
Set the edit part of the target node |
void |
setTargetPos(org.eclipse.draw2d.geometry.Point tgtPos)
Set the target position of the edge |
void |
undo()
Unset graphic properties |
protected void |
undoModel()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageEdgeCreationCommand(org.eclipse.gef.EditDomain domain, GraphEdge newObj, GraphElement src)
domain
- the edit domainnewObj
- the graph edge of the new connectionsrc
- the graph element of the sourcepublic MessageEdgeCreationCommand(org.eclipse.gef.EditDomain domain, GraphEdge newObj, GraphElement src, boolean needModelUpdate)
domain
- the edit domainnewObj
- the graph edge of the new connectionsrc
- the graph element of the sourceneedModelUpdate
- set it to true if the model need to be updatedMethod Detail |
---|
public org.eclipse.uml2.uml.Message getMessage()
public void setSourcePos(org.eclipse.draw2d.geometry.Point srcPos)
srcPos
- the source position on the lifelinepublic org.eclipse.draw2d.geometry.Point getSourcePos()
public void setTargetPos(org.eclipse.draw2d.geometry.Point tgtPos)
tgtPos
- the target position on the lifelinepublic org.eclipse.draw2d.geometry.Point getTargetPos()
public void setSourceEditPart(BaseEditPart source)
source
- the edit part of the source nodepublic BaseEditPart getSourceEditPart()
public void setTargetEditPart(BaseEditPart target)
target
- the edit part of the target nodepublic BaseEditPart getTargetEditPart()
public org.eclipse.uml2.uml.Lifeline getSrcLifeline()
public org.eclipse.uml2.uml.Lifeline getTargetLifeline()
public void redo()
Command.redo()
protected void redoModel()
public void undo()
Command.undo()
protected void undoModel()
|
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.