|
TPTP 4.1.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
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 boolean |
computeMinMax
Indicate if the min and max enlapsed time between two consecutive messages in the whole frame need to be computed |
protected int |
forceEventOccurrenceSpacing
|
protected int |
horizontalIndex
The index along the x axis where the next lifeline will is drawn This directly impact the Frame width |
protected boolean |
lastExternalTimePref
Store the preference set by the user regarding the external time. |
protected double |
maxTime
Contains the max enlapsed time between two consecutive messages in the whole frame |
protected double |
minTime
Contains the min enlapsed time between two consecutive messages in the whole frame |
protected boolean |
timeInfo
|
protected java.lang.String |
unitName
|
protected static ISDPreferences |
userPref
|
protected int |
verticalIndex
The greater event occurence created on graph nodes drawn in this Frame This directly impact the Frame height |
| Fields inherited from class org.eclipse.hyades.uml2sd.ui.core.GraphNode |
|---|
bnodes, bSort, endEventOccurrence, fnodes, fSort, hasChilds, indexes, nodes, prefId, startEventOccurrence |
| Constructor Summary | |
|---|---|
BasicFrame()
Creates an empty frame. |
|
| Method Summary | |
|---|---|
void |
addNode(GraphNode nodeToAdd)
Add a GraphNode into 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 |
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 Frame on the given context. This method start width GraphNodes ordering if neeeded. After, depending on the visible area, only visible GraphNodes are drawn. |
protected void |
draw(IGC context,
boolean drawFrame)
Draws the Frame on the given context. This method start width GraphNodes ordering if neeeded. After, depending on the visible area, only visible GraphNodes are drawn. |
protected void |
drawFrame(IGC context)
Draw the Frame rectangle |
void |
forceEventOccurrenceSpacing(int space)
|
java.lang.String |
getArrayId()
Return the node type for all class instances. |
int |
getHeight()
The Frame height depends on the maximum number of messsages added to a lifeline( Taking all lifelines into account) |
protected int |
getHorizontalIndex()
Returns the current horizontal index |
protected int |
getMaxEventOccurrence()
Returns the greater event occurence known by the Frame |
double |
getMaxTime()
Return the maximum time stored in the frame taking all GraphNodes into account |
double |
getMinTime()
Return the minimum time stored in the frame taking all GraphNodes into account |
protected int |
getNewHorizontalIndex()
This method increase the lifeline place holder The return value is usually assign to a lifeline. |
protected GraphNode |
getNodeFromListAt(int x,
int y,
java.util.List list,
int fromIndex)
Returns the graph node which contains the point given in parameter for the given graph node list and starting the iteration at the given index WARNING: Only graph nodes with smaller coordinates than the current visible area can be returned. |
java.lang.String |
getTimeUnitName()
|
static ISDPreferences |
getUserPref()
|
int |
getVisibleAreaHeight()
Return the frame visible area height |
int |
getVisibleAreaWidth()
Return the frame visible area width |
int |
getVisibleAreaX()
Return the X coordinates of the frame visible area |
int |
getVisibleAreaY()
Return the X coordinates of the frame visible area |
int |
getWidth()
The frame width depends on the number of lifeline added in the frame |
int |
getX()
Returns the x coordinate of the graph node |
int |
getY()
Returns the y coordinate of the graph node |
protected void |
setMaxEventOccurrence(int eventOccurrence)
Set the greater event occurrence created in GraphNodes included in the frame |
void |
setTimeUnitName(java.lang.String name)
|
static void |
setUserPref(ISDPreferences pref)
|
| 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 double maxTime
protected double minTime
protected boolean computeMinMax
protected boolean lastExternalTimePref
protected int verticalIndex
protected int horizontalIndex
protected boolean timeInfo
protected static ISDPreferences userPref
protected java.lang.String unitName
protected int forceEventOccurrenceSpacing
| Constructor Detail |
public BasicFrame()
| Method Detail |
protected int getMaxEventOccurrence()
protected void setMaxEventOccurrence(int eventOccurrence)
eventOccurrence - the new greater event occurrenceprotected int getNewHorizontalIndex()
protected int getHorizontalIndex()
for horizontal index descriptionpublic void addNode(GraphNode nodeToAdd)
addNode in class GraphNodenodeToAdd - the node to addpublic int getX()
GraphNode
getX in class GraphNodeGraphNode.getX()public int getY()
GraphNode
getY in class GraphNodeGraphNode.getX()public int getWidth()
getWidth in class GraphNodeGraphNode.getWidth()public int getHeight()
getHeight in class GraphNodeGraphNode.getHeight()
protected GraphNode getNodeFromListAt(int x,
int y,
java.util.List list,
int fromIndex)
getNodeFromListAt in class GraphNodex - the x coordinate of the point to testy - the y coordinate of the point to testlist - the list to search infromIndex - list browsing starting point
protected void drawFrame(IGC context)
context - the context to draw topublic void draw(IGC context)
draw in class GraphNodecontext - the context to draw toGraphNode.draw(IGC)
protected void draw(IGC context,
boolean drawFrame)
context - the context to draw todrawFrame - indicate if the frame rectangle need to be redrawnGraphNode.draw(IGC)public static void setUserPref(ISDPreferences pref)
public static ISDPreferences getUserPref()
public void setTimeUnitName(java.lang.String name)
public java.lang.String getTimeUnitName()
public void forceEventOccurrenceSpacing(int space)
public int getVisibleAreaX()
public int getVisibleAreaWidth()
public int getVisibleAreaHeight()
public int getVisibleAreaY()
public double getMinTime()
public double getMaxTime()
protected void computeMinMax()
protected java.util.List buildTimeArray()
public 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.1.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||