|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnz.ac.waikato.modeljunit.gui.visualisaton.JUNGHelper
public class JUNGHelper
Nested Class Summary | |
---|---|
static class |
JUNGHelper.LayoutType
|
Field Summary | |
---|---|
static edu.uci.ics.jung.algorithms.layout.SpringLayout.LengthFunction<java.lang.Object> |
UNITLENGTHFUNCTION
|
Constructor Summary | |
---|---|
JUNGHelper()
Main Constructor to initialise class wide variables. |
Method Summary | |
---|---|
EdgeInfo |
getEdge(Transition tr)
This method will return an EdgeInfo object given a transition. |
edu.uci.ics.jung.graph.DirectedSparseMultigraph<java.lang.Object,java.lang.Object> |
getGraph()
Get the JUNG graph. |
static JUNGHelper |
getJUNGViewInstance()
Get an instance of this class. |
edu.uci.ics.jung.algorithms.layout.Layout<java.lang.Object,java.lang.Object> |
getLayout(JUNGHelper.LayoutType type)
This method will return the layout required for a visualisation viewer. |
javax.swing.tree.DefaultMutableTreeNode |
getRootTreeNode()
This will return a root tree node. |
java.util.ArrayList<java.lang.Object> |
getVertices()
This method will get all the vertices as an arraylist. |
void |
graphDoneReset(java.lang.String str)
This is run when the graph is reset. |
void |
preExploredGraph(GraphListener graph)
This is used to fully explore a graph. |
void |
resetRunTimeInformation()
Reset JUNGView. |
void |
setEdgeDisplayed(Transition tr,
boolean displayed)
This will set the edge transition display value. |
void |
visitedEdge(Transition trans,
boolean failed,
java.lang.String failedMsg)
This lets the visualisation panel know about any edges that have been visited and marks them as visited. |
void |
visitedVertex(java.lang.Object vertex,
boolean failed)
This method lets this panel know about vertexs that have been visited by the exploration algorythm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final edu.uci.ics.jung.algorithms.layout.SpringLayout.LengthFunction<java.lang.Object> UNITLENGTHFUNCTION
Constructor Detail |
---|
public JUNGHelper()
Method Detail |
---|
public static JUNGHelper getJUNGViewInstance()
public edu.uci.ics.jung.graph.DirectedSparseMultigraph<java.lang.Object,java.lang.Object> getGraph()
public void setEdgeDisplayed(Transition tr, boolean displayed)
tr
- The transition we are looking fordisplayed
- whether or not it is displayed.public EdgeInfo getEdge(Transition tr)
tr
- The transition
public edu.uci.ics.jung.algorithms.layout.Layout<java.lang.Object,java.lang.Object> getLayout(JUNGHelper.LayoutType type)
type
- The type of layout required.
public void preExploredGraph(GraphListener graph)
graph
- The GraphListener which contains the explored graph.public void resetRunTimeInformation()
public javax.swing.tree.DefaultMutableTreeNode getRootTreeNode()
public java.util.ArrayList<java.lang.Object> getVertices()
public void graphDoneReset(java.lang.String str)
str
- public void visitedVertex(java.lang.Object vertex, boolean failed)
vertex
- The name of the vertexpublic void visitedEdge(Transition trans, boolean failed, java.lang.String failedMsg)
failed
- action
- startState
- endState
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |