|
TPTP 4.6.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.Stop
public class Stop
It is the UML2 stop graphcal representation in the sequence diagram viewer.
This draw a cross on the lifeline. The stop y coordinate depend on the event occurrence when it appears.
A stop is never drawn it is assigned to a lifeline.
org.eclipse.hyades.uml2sd.ui.core.Lifeline#setStop(Stop)| Field Summary | |
|---|---|
static java.lang.String |
STOP
The graphNode ID |
| Fields inherited from class org.eclipse.hyades.uml2sd.ui.core.GraphNode |
|---|
prefId |
| Constructor Summary | |
|---|---|
Stop()
|
|
| 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 |
getHeight()
Returns the graph node height |
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 |
void |
setEventOccurrence(int occurrence)
Set the event occurence when this stop appears |
void |
setLifeline(Lifeline theLifeline)
Set the lifeline on which the stop must be draw |
| Methods inherited from class org.eclipse.hyades.uml2sd.ui.core.GraphNode |
|---|
addNode, contains, drawFocus, getBackComparator, getComparator, getEndOccurrence, getName, getNodeAt, getNodeList, getStartOccurrence, hasFocus, isSameAs, isSelected, isVisible, positiveDistanceToPoint, resetIndex, setFocused, setName, setSelected, updateIndex |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String STOP
| Constructor Detail |
|---|
public Stop()
| 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 GraphNodepublic void setLifeline(Lifeline theLifeline)
theLifeline - The the stop owing lifelinepublic void setEventOccurrence(int occurrence)
occurrence - the eventOccurence to assign to the stoppublic void draw(IGC context)
GraphNode
context - the graphical context to draw inpublic java.lang.String getArrayId()
GraphNode
getArrayId in class GraphNode
public boolean contains(int x,
int y)
GraphNode
contains in class GraphNodex - the x coordinate of the point to test containment
|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||