|
TPTP 4.5.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
public class 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 |
|---|
| Fields inherited from class org.eclipse.hyades.uml2sd.ui.core.GraphNode |
|---|
prefId |
| 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 |
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 |
GraphNode |
getCalledMessage(BaseMessage StartMessage)
|
GraphNode |
getCallerMessage(BaseMessage StartMessage)
|
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 |
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 |
java.lang.Object[] |
getSyncMessagesArray()
Deprecated. |
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()
|
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, contains, forceEventOccurrenceSpacing, getArrayId, getHeight, getMaxTime, getMinTime, getSDMaxTime, getSDMinTime, getTimeUnitName, getUserPref, getVisibleAreaHeight, getVisibleAreaWidth, getVisibleAreaX, getVisibleAreaY, getWidth, getX, getY, resetCustomMinMax, setMax, setMin, setTimeUnitName, setUserPref |
| Methods inherited from class org.eclipse.hyades.uml2sd.ui.core.GraphNode |
|---|
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 |
| Constructor Detail |
|---|
public Frame()
| Method Detail |
|---|
public int lifeLinesCount()
public Lifeline getLifeline(int index)
index - the position in the lifeline array
public java.lang.Object[] getSyncMessagesArray()
public int syncMessageCount()
public SyncMessage getSyncMessage(int index)
index - the position in the syncMessages array
public int asyncMessageCount()
public AsyncMessage getAsyncMessage(int index)
index - the position in the asyncMessage array
public java.lang.Object[] getSyncMessagesReturnArray()
public int syncMessageReturnCount()
public SyncMessageReturn getSyncMessageReturn(int index)
index - the position in the syncMessageReturn array
public int asyncMessageReturnCount()
public AsyncMessageReturn getAsyncMessageReturn(int index)
index - the position in the asyncMessageReturn array
public void addLifeLine(Lifeline lifeLine)
the - lifeline to addpublic 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()
public boolean findDateBounds(double dateToFind,
ITimeRange[] bounds)
dateToFind - date to be foundbounds - a two items array that will receive bounds if found
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)
the - message to addpublic void draw(IGC context)
BasicFrame
draw in class BasicFramecontext - the context to draw toGraphNode.draw(IGC)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.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||