|
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.BasicExecutionOccurrence
BasicExecutionOccurrence is the UML2 execution occurrence graphical representation. It is attached to one Lifeline, the event occurrence "duration" along the lifeline is defined by two event occurrences
Lifeline for more event occurence details| Field Summary | |
|---|---|
static java.lang.String |
EXEC_OCC_TAG
|
protected Lifeline |
lifeline
|
| Fields inherited from class org.eclipse.hyades.uml2sd.ui.core.GraphNode |
|---|
bnodes, bSort, endEventOccurrence, fnodes, fSort, hasChilds, indexes, nodes, prefId, startEventOccurrence |
| Constructor Summary | |
|---|---|
BasicExecutionOccurrence()
|
|
| Method Summary | |
|---|---|
boolean |
contains(int _x,
int _y)
Returns true if the graph node contains the point given in parameter, return false otherwise. |
void |
draw(IGC context)
Draws the graph node in the given context |
java.lang.String |
getArrayId()
Return the node type for all class instances. |
int |
getEndOccurrence()
Set the execution end event occurrence |
int |
getHeight()
Returns the graph node height |
Lifeline |
getLifeline()
Get the lifeline on which the execution occurrence appears. |
java.lang.String |
getName()
Returns the graph node name. |
int |
getStartOccurrence()
Get the execution start event occurrence |
int |
getWidth()
Returns the graph node width |
int |
getX()
Returns the x coordinate of the graph node |
int |
getY()
Returns the y coordinate of the graph node |
boolean |
isVisible(int x,
int y,
int width,
int height)
Returns the GraphNode visibility for the given visible area. |
boolean |
positiveDistanceToPoint(int x,
int y)
Return true if the distance from the GraphNode to the given point is positif |
void |
setEndOccurrence(int occurrence)
Set the execution end event occurrence |
void |
setLifeline(Lifeline theLifeline)
Set the lifeline on which the execution occurrence appears. |
void |
setStartOccurrence(int occurrence)
Set the execution start event occurrence |
protected IColor |
setUnselectedFillColor(IGC context)
Rewrite this method in your extension in order to support customized fill colors |
protected IColor |
setUnselectedStrokeColor(IGC context)
Rewrite this method in your extension in order to support customized stroke colors |
| Methods inherited from class org.eclipse.hyades.uml2sd.ui.core.GraphNode |
|---|
addNode, contains, drawChildsNodes, drawFocus, getBackComparator, getComparator, getNodeAt, getNodeFromListAt, getNodeList, hasFocus, isSameAs, isSelected, 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 lifeline
public static final java.lang.String EXEC_OCC_TAG
| Constructor Detail |
public BasicExecutionOccurrence()
| 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 GraphNode
public boolean contains(int _x,
int _y)
GraphNode
contains in class GraphNode_x - the x coordinate of the point to test containment public java.lang.String getName()
GraphNode
getName in class GraphNodepublic void setLifeline(Lifeline theLifeline)
theLifeline - - the parent lifelinepublic Lifeline getLifeline()
public int getStartOccurrence()
getStartOccurrence in class GraphNodepublic int getEndOccurrence()
getEndOccurrence in class GraphNodepublic void setStartOccurrence(int occurrence)
occurrence - the start event occurrence to setpublic void setEndOccurrence(int occurrence)
occurrence - the end event occurrence to setpublic void draw(IGC context)
GraphNode
draw in class GraphNodecontext - the graphical context to draw inprotected IColor setUnselectedFillColor(IGC context)
context -
protected IColor setUnselectedStrokeColor(IGC context)
context -
public java.lang.String getArrayId()
GraphNode
getArrayId in class GraphNode
public boolean positiveDistanceToPoint(int x,
int y)
GraphNode
positiveDistanceToPoint in class GraphNodex - the point x coordinatey - the point y coordinate
public boolean isVisible(int x,
int y,
int width,
int height)
GraphNode
isVisible 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 | ||||||||||