|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.uml2sd.ui.core.GraphNode
org.eclipse.hyades.uml2sd.ui.core.BaseMessage
The base UML2 syncMessages implementation.
This abstract class only define one event occurrence to attach to the message.
Usually a message has two event occurences attached, one for both ends. But some syncMessages(like synchrone syncMessages) only need one
event occurrence to represent the time when they appear. Others kind of message representations (like asynchronous syncMessages) will be
responsible to define the missing second eventOccurrence property.
Lifeline for more event occurence details| Field Summary | |
|---|---|
protected Lifeline |
endLifeline
The lifeline which receive the message |
protected Lifeline |
startLifeline
The lifeline which send the message |
protected boolean |
visible
|
| Fields inherited from class org.eclipse.hyades.uml2sd.ui.core.GraphNode |
|---|
bnodes, bSort, endEventOccurrence, fnodes, fSort, hasChilds, indexes, nodes, prefId, startEventOccurrence |
| Constructor Summary | |
|---|---|
BaseMessage()
|
|
| Method Summary | |
|---|---|
boolean |
contains(int _x,
int _y)
Returns true if the message or the message label contains the point given in parameter |
void |
draw(IGC context)
Draws the graph node in the given context |
void |
drawFocus(IGC context)
|
void |
drawRot(int x,
int y,
int w,
int h,
IGC context)
|
Lifeline |
getEndLifeline()
Returns the lifeline which has received this message. |
int |
getEventOccurrence()
Returns the event occurence when is message occurs. |
int |
getHeight()
Returns the graph node height |
Lifeline |
getStartLifeline()
Returns the lifeline from which this message has been sent. |
int |
getWidth()
Returns the graph node width |
protected int |
getWidth(boolean quick)
Returns the graph node width. |
int |
getX()
Returns the x coordinate of the graph node |
protected int |
getX(boolean quick)
Returns the graph node x coordinate. |
int |
getY()
Returns the y coordinate of the graph node |
protected boolean |
isMessageEndInActivation(int event)
Determines if the given event occurence occurs on a execution occurence owned by the receiving lifeline. |
protected boolean |
isMessageStartInActivation(int event)
Determines if the given eventOccurence occurs on a executionOccurence owned by the sending lifeline. |
boolean |
isSameAs(GraphNode message)
Determine if two messages are identicals. |
boolean |
isVisible()
|
boolean |
isVisible(int x,
int y,
int width,
int height)
Returns the GraphNode visibility for the given visible area. |
void |
setEndLifeline(Lifeline lifeline)
Set the lifeline which has receive this message. |
protected void |
setEventOccurrence(int occurrence)
Set the event occurrence when this message occurs. |
void |
setStartLifeline(Lifeline lifeline)
Set the lifeline from which this message has been sent. |
void |
setVisible(boolean value)
|
| Methods inherited from class org.eclipse.hyades.uml2sd.ui.core.GraphNode |
|---|
addNode, contains, drawChildsNodes, getArrayId, getBackComparator, getComparator, getEndOccurrence, getName, getNodeAt, getNodeFromListAt, getNodeList, getStartOccurrence, hasFocus, isSelected, positiveDistanceToPoint, resetIndex, setFocused, setName, setSelected, updateIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Lifeline startLifeline
protected Lifeline endLifeline
protected boolean visible
| Constructor Detail |
public BaseMessage()
| Method Detail |
public int getX()
GraphNode
getX in class GraphNodepublic int getY()
GraphNode
getY in class GraphNodepublic int getWidth()
GraphNode
getWidth in class GraphNodepublic int getHeight()
GraphNode
getHeight in class GraphNodeprotected int getX(boolean quick)
quick - true to get an approximative valueprotected int getWidth(boolean quick)
quick - true to get an approximative value
public boolean isVisible(int x,
int y,
int width,
int height)
GraphNode
isVisible in class GraphNodepublic void setVisible(boolean value)
public boolean isVisible()
public void setStartLifeline(Lifeline lifeline)
lifeline - - the message senderpublic Lifeline getStartLifeline()
public Lifeline getEndLifeline()
public void setEndLifeline(Lifeline lifeline)
lifeline - the message receiverprotected void setEventOccurrence(int occurrence)
occurrence - the event occurence to assign to this message.Lifeline for more event occurence detailspublic int getEventOccurrence()
Lifeline for more event occurence detailsprotected boolean isMessageStartInActivation(int event)
event - the event occurence to test
getX(boolean)protected boolean isMessageEndInActivation(int event)
event - the event occurence to test
getX(boolean)
public boolean contains(int _x,
int _y)
contains in class GraphNode_x - the x coordinate of the point to test containment public void draw(IGC context)
GraphNode
draw in class GraphNodecontext - the graphical context to draw inpublic boolean isSameAs(GraphNode message)
isSameAs in class GraphNodemessage - - the message to compare with
public void drawRot(int x,
int y,
int w,
int h,
IGC context)
public void drawFocus(IGC context)
drawFocus in class GraphNode
|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||