anl.aida.plot
Class NetworkPlotCreator
java.lang.Object
anl.aida.plot.NetworkPlotCreator
public class NetworkPlotCreator
- extends java.lang.Object
Method Summary |
void |
addTo(edu.uci.ics.jung.graph.Graph<ValueNode,java.lang.Object> graph,
VNode parent,
int timestep)
|
boolean |
isEmptyNodesVisible()
Gets whether or not the empty nodes are visible. |
void |
setEmptyNodesVisible(boolean visible)
Sets the visibility of empty nodes. |
void |
updateLayout(VSpatial spatial,
javax.vecmath.Point3f localTrans)
Updates the location of the specified spatial to the
local transform. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCALE_FACTOR
private static int SCALE_FACTOR
layout
private CircleLayout<ValueNode> layout
nodePaint
private java.awt.Color nodePaint
width
private float width
height
private float height
emptyNodes
private java.util.List<VSpatial> emptyNodes
emptyNodesVisible
private boolean emptyNodesVisible
avgValue
private float avgValue
NetworkPlotCreator
public NetworkPlotCreator(float width,
float height,
CircleLayout<ValueNode> layout,
float avgValue)
isEmptyNodesVisible
public boolean isEmptyNodesVisible()
- Gets whether or not the empty nodes are visible.
- Returns:
- whether or not the empty nodes are visible.
setEmptyNodesVisible
public void setEmptyNodesVisible(boolean visible)
- Sets the visibility of empty nodes.
- Parameters:
visible
-
updateLayout
public void updateLayout(VSpatial spatial,
javax.vecmath.Point3f localTrans)
- Updates the location of the specified spatial to the
local transform.
- Parameters:
spatial
- the spatial whose location we should updatelocalTrans
- the new location
addTo
public void addTo(edu.uci.ics.jung.graph.Graph<ValueNode,java.lang.Object> graph,
VNode parent,
int timestep)