|
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.BasicFrame
org.eclipse.hyades.uml2sd.ui.core.Frame
The Frame class is the base sequence diagram graph nodes container.
For instance, only one frame can be drawn in the View.
Lifelines, Messages and Stop which are supposed to represent a Sequence diagram are
drawn in a Frame.
Only the graph node added to their representing list will be drawn.
The lifelines are appended along the X axsis when added in a frame.
The syncMessages are ordered along the Y axsis depending on the event occurrence they are attached to.
Lifeline for more event occurence details| Field Summary | |
|---|---|
protected java.util.List |
executionOccurrencesWithTime
|
protected IColor |
highlightColor
|
protected Lifeline |
highlightLifeline
|
protected LifelineCategories[] |
lifelineCategories
|
protected int |
nbEvent
|
protected int |
startEvent
|
| Fields inherited from class org.eclipse.hyades.uml2sd.ui.core.BasicFrame |
|---|
computeMinMax, forceEventOccurrenceSpacing, horizontalIndex, lastExternalTimePref, maxTime, minTime, timeInfo, unitName, userPref, verticalIndex |
| Fields inherited from class org.eclipse.hyades.uml2sd.ui.core.GraphNode |
|---|
bnodes, bSort, endEventOccurrence, fnodes, fSort, hasChilds, indexes, nodes, prefId, startEventOccurrence |
| Constructor Summary | |
|---|---|
Frame()
|
|
| Method Summary | |
|---|---|
void |
addLifeLine(Lifeline lifeLine)
Adds a lifeline to the frame lifelines list. |
void |
addMessage(BaseMessage message)
Adds a message to the Frame message list. |
int |
asyncMessageCount()
Returns the number of asyncMessage stored in the frame |
int |
asyncMessageReturnCount()
Returns the number of asyncMessageReturn stored in the frame |
protected java.util.List |
buildTimeArray()
|
protected void |
computeMinMax()
Browse all the GraphNode to compute the mim and max times store in the Frame |
void |
draw(IGC context)
Draws the Frame on the given context. |
boolean |
findDateBounds(double dateToFind,
ITimeRange[] bounds)
Find the two graph nodes that are closest to this date, one just earlier, second just later. |
AsyncMessage |
getAsyncMessage(int index)
Returns the asyncMessage at the given index in the asyncMessage array |
AsyncMessageReturn |
getAsyncMessageReturn(int index)
Returns the asyncMessageReturn at the given index in the asyncMessageReturn array |
protected java.util.List |
getAsyncMessages()
Returns a list of asyncMessages known by this frame. |
protected java.util.List |
getAsyncMessagesReturn()
Returns a list of asyncMessageRetun known by this frame. |
GraphNode |
getCalledMessage(BaseMessage StartMessage)
|
GraphNode |
getCallerMessage(BaseMessage StartMessage)
|
protected GraphNode |
getCloserEnteringMessage(Lifeline lifeline,
BaseMessage message,
java.util.List list,
boolean smallerEvent)
|
protected GraphNode |
getCloserLeavingMessage(Lifeline lifeline,
BaseMessage message,
java.util.List list,
boolean smallerEvent)
|
Lifeline |
getCloserLifeline(int x)
|
java.util.List |
getExecutionOccurrencesWithTime()
|
BasicExecutionOccurrence |
getFirstExecution(Lifeline lifeline)
|
int |
getFirstVisibleAsyncMessage()
Returns the first visible synchronous message drawn in the view |
int |
getFirstVisibleAsyncMessageReturn()
Returns the first visible synchronous message return drawn in the view |
int |
getFirstVisibleLifeline()
Returns the first visible lifeline drawn in the view |
int |
getFirstVisibleSyncMessage()
Returns the first visible synchronous message drawn in the view |
int |
getFirstVisibleSyncMessageReturn()
Returns the first visible synchronous message return drawn in the view |
BasicExecutionOccurrence |
getLastExecOccurrence(Lifeline lifeline)
|
Lifeline |
getLifeline(int index)
Returns the lifeline at the given index in the lifelines array |
LifelineCategories[] |
getLifelineCategories()
Returns the lifeline categories array set for the this frame |
protected java.util.List |
getLifelines()
Returns a list of all lifelines known by this frame. |
BasicExecutionOccurrence |
getNextExecOccurrence(BasicExecutionOccurrence exec)
|
GraphNode |
getNextLifelineMessage(Lifeline lifeline,
BaseMessage StartMessage)
|
BasicExecutionOccurrence |
getPrevExecOccurrence(BasicExecutionOccurrence exec)
|
GraphNode |
getPrevLifelineMessage(Lifeline lifeline,
BaseMessage StartMessage)
|
SyncMessage |
getSyncMessage(int index)
Returns the syncMessage at the given index in the syncMessages array |
SyncMessageReturn |
getSyncMessageReturn(int index)
Returns the syncMessageReturn at the given index in the syncMessageReturn array |
protected java.util.List |
getSyncMessages()
Returns a list of syncMessages known by this frame. |
java.lang.Object[] |
getSyncMessagesArray()
Deprecated. |
protected java.util.List |
getSyncMessagesReturn()
Returns a list of syncMessages return known by this frame. |
java.lang.Object[] |
getSyncMessagesReturnArray()
Deprecated. |
boolean |
hasTimeInfo()
|
void |
highlightTimeCompression(Lifeline lifeline,
int startEvent,
int nbEvent,
IColor color)
|
void |
insertLifelineAfter(Lifeline toInsert,
Lifeline after)
|
void |
insertLifelineBefore(Lifeline toInsert,
Lifeline before)
|
int |
lifeLinesCount()
Returns the number of lifelines stored in the frame |
void |
reorder(java.util.ArrayList list)
|
void |
resetTimeCompression()
|
protected void |
setHasTimeInfo(boolean value)
|
void |
setLifelineCategories(LifelineCategories[] categories)
Set the lifeline categories which will be use during the lifelines creation |
int |
syncMessageCount()
Returns the number of syncMessages stored in the frame |
int |
syncMessageReturnCount()
Returns the number of syncMessageReturn stored in the frame |
| Methods inherited from class org.eclipse.hyades.uml2sd.ui.core.BasicFrame |
|---|
addNode, computeMaxMinTime, contains, draw, drawFrame, forceEventOccurrenceSpacing, getArrayId, getHeight, getHorizontalIndex, getMaxEventOccurrence, getMaxTime, getMinTime, getNewHorizontalIndex, getNodeFromListAt, getSDMaxTime, getSDMinTime, getTimeUnitName, getUserPref, getVisibleAreaHeight, getVisibleAreaWidth, getVisibleAreaX, getVisibleAreaY, getWidth, getX, getY, resetCustomMinMax, setMax, setMaxEventOccurrence, setMin, setTimeUnitName, setUserPref |
| Methods inherited from class org.eclipse.hyades.uml2sd.ui.core.GraphNode |
|---|
contains, drawChildsNodes, 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Lifeline highlightLifeline
protected int startEvent
protected int nbEvent
protected IColor highlightColor
protected java.util.List executionOccurrencesWithTime
protected LifelineCategories[] lifelineCategories
| Constructor Detail |
public Frame()
| Method Detail |
protected java.util.List getLifelines()
public int lifeLinesCount()
public Lifeline getLifeline(int index)
index - the position in the lifeline array
protected java.util.List getSyncMessages()
public java.lang.Object[] getSyncMessagesArray()
public int syncMessageCount()
public SyncMessage getSyncMessage(int index)
index - the position in the syncMessages array
protected java.util.List getAsyncMessages()
public int asyncMessageCount()
public AsyncMessage getAsyncMessage(int index)
index - the position in the asyncMessage array
protected java.util.List getSyncMessagesReturn()
public java.lang.Object[] getSyncMessagesReturnArray()
public int syncMessageReturnCount()
public SyncMessageReturn getSyncMessageReturn(int index)
index - the position in the syncMessageReturn array
protected java.util.List getAsyncMessagesReturn()
public int asyncMessageReturnCount()
public AsyncMessageReturn getAsyncMessageReturn(int index)
index - the position in the asyncMessageReturn array
public void addLifeLine(Lifeline lifeLine)
public int getFirstVisibleLifeline()
public int getFirstVisibleSyncMessage()
public int getFirstVisibleSyncMessageReturn()
public int getFirstVisibleAsyncMessage()
public int getFirstVisibleAsyncMessageReturn()
public java.util.List getExecutionOccurrencesWithTime()
public void insertLifelineAfter(Lifeline toInsert,
Lifeline after)
public void insertLifelineBefore(Lifeline toInsert,
Lifeline before)
public Lifeline getCloserLifeline(int x)
public void reorder(java.util.ArrayList list)
public void resetTimeCompression()
protected void computeMinMax()
BasicFrame
computeMinMax in class BasicFrame
public boolean findDateBounds(double dateToFind,
ITimeRange[] bounds)
dateToFind - date to be foundbounds - a two items array that will receive bounds if found
protected void setHasTimeInfo(boolean value)
public boolean hasTimeInfo()
public void highlightTimeCompression(Lifeline lifeline,
int startEvent,
int nbEvent,
IColor color)
public void setLifelineCategories(LifelineCategories[] categories)
categories - the lifeline categories arrayLifeline.setCategory(int)public LifelineCategories[] getLifelineCategories()
public void addMessage(BaseMessage message)
public void draw(IGC context)
BasicFrame
draw in class BasicFramecontext - the context to draw toGraphNode.draw(IGC)protected java.util.List buildTimeArray()
buildTimeArray in class BasicFrame
protected GraphNode getCloserLeavingMessage(Lifeline lifeline,
BaseMessage message,
java.util.List list,
boolean smallerEvent)
protected GraphNode getCloserEnteringMessage(Lifeline lifeline,
BaseMessage message,
java.util.List list,
boolean smallerEvent)
public GraphNode getCalledMessage(BaseMessage StartMessage)
public GraphNode getCallerMessage(BaseMessage StartMessage)
public GraphNode getNextLifelineMessage(Lifeline lifeline,
BaseMessage StartMessage)
public BasicExecutionOccurrence getFirstExecution(Lifeline lifeline)
public BasicExecutionOccurrence getPrevExecOccurrence(BasicExecutionOccurrence exec)
public BasicExecutionOccurrence getNextExecOccurrence(BasicExecutionOccurrence exec)
public BasicExecutionOccurrence getLastExecOccurrence(Lifeline lifeline)
public GraphNode getPrevLifelineMessage(Lifeline lifeline,
BaseMessage StartMessage)
|
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 | ||||||||||