public class Visualization
extends java.lang.Object
Constructor and Description |
---|
Visualization()
Instantiates a new visualization.
|
Modifier and Type | Method and Description |
---|---|
void |
animationProcess()
Animation process.
|
void |
clearAnimation()
Clear animation.
|
static void |
evaluateEdges(edu.uci.ics.jung.graph.Graph<Vertex,Edge> g)
Evaluate edges.
|
static java.lang.String |
getGoal()
Gets the goal.
|
static edu.uci.ics.jung.algorithms.layout.AbstractLayout<Vertex,Edge> |
getLayout()
Gets the layout.
|
static java.lang.String |
getStart()
Gets the start.
|
static double |
getVertexX(Vertex vertex)
Gets the vertex X.
|
static double |
getVertexY(Vertex vertex)
Gets the vertex Y.
|
edu.uci.ics.jung.visualization.VisualizationViewer<Vertex,Edge> |
getVisualizationViewer()
Gets the visualization viewer.
|
void |
pause()
Pause.
|
void |
resume()
Resume.
|
void |
setGoal(java.lang.String s)
Sets the goal.
|
void |
setGraphMouse(int mode)
Sets the graph mouse.
|
static void |
setLayout(edu.uci.ics.jung.algorithms.layout.AbstractLayout<Vertex,Edge> l)
Sets the layout.
|
void |
setStart(java.lang.String s)
Sets the start.
|
void |
startAnimation()
Start animation.
|
void |
Visualize(edu.uci.ics.jung.graph.Graph<Vertex,Edge> g,
edu.uci.ics.jung.algorithms.layout.AbstractLayout<Vertex,Edge> l)
Visualize.
|
public void setGraphMouse(int mode)
mode
- the new graph mousepublic void clearAnimation()
public edu.uci.ics.jung.visualization.VisualizationViewer<Vertex,Edge> getVisualizationViewer()
public void startAnimation()
public void animationProcess()
public static void setLayout(edu.uci.ics.jung.algorithms.layout.AbstractLayout<Vertex,Edge> l)
l
- the lpublic static edu.uci.ics.jung.algorithms.layout.AbstractLayout<Vertex,Edge> getLayout()
public static java.lang.String getStart()
public void setStart(java.lang.String s)
s
- the new startpublic static java.lang.String getGoal()
public void setGoal(java.lang.String s)
s
- the new goalpublic void Visualize(edu.uci.ics.jung.graph.Graph<Vertex,Edge> g, edu.uci.ics.jung.algorithms.layout.AbstractLayout<Vertex,Edge> l)
g
- the gl
- the lpublic void pause()
public void resume()
public static double getVertexX(Vertex vertex)
vertex
- the vertexpublic static double getVertexY(Vertex vertex)
vertex
- the vertex