anl.aida.plot
Class NetworkPlotCreator

java.lang.Object
  extended by anl.aida.plot.NetworkPlotCreator

public class NetworkPlotCreator
extends java.lang.Object


Field Summary
private  float avgValue
           
private  java.util.List<VSpatial> emptyNodes
           
private  boolean emptyNodesVisible
           
private  float height
           
private  CircleLayout<ValueNode> layout
           
private  java.awt.Color nodePaint
           
private static int SCALE_FACTOR
           
private  float width
           
 
Constructor Summary
NetworkPlotCreator(float width, float height, CircleLayout<ValueNode> layout, float avgValue)
           
 
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
 

Field Detail

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
Constructor Detail

NetworkPlotCreator

public NetworkPlotCreator(float width,
                          float height,
                          CircleLayout<ValueNode> layout,
                          float avgValue)
Method Detail

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 update
localTrans - the new location

addTo

public void addTo(edu.uci.ics.jung.graph.Graph<ValueNode,java.lang.Object> graph,
                  VNode parent,
                  int timestep)