anl.aida.viz3d
Class NetworkVizCreator

java.lang.Object
  extended by anl.aida.viz3d.NetworkVizCreator

public class NetworkVizCreator
extends java.lang.Object


Field Summary
private  EdgeStyler edgeStyler
           
private  java.util.List<VSpatial> emptyNodes
           
private  boolean emptyNodesVisible
           
private  float height
           
private  Layout2D<TermNode> layout
           
private  java.awt.Color nodePaint
           
private static int SCALE_FACTOR
           
private  float width
           
 
Constructor Summary
NetworkVizCreator(float width, float height, Layout2D<TermNode> layout)
           
 
Method Summary
 void addTo(ConceptGraph<TermNode> graph, VNode parent, anl.aida.util.DateRange date)
           
 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 Layout2D<TermNode> layout

nodePaint

private java.awt.Color nodePaint

width

private float width

height

private float height

edgeStyler

private EdgeStyler edgeStyler

emptyNodes

private java.util.List<VSpatial> emptyNodes

emptyNodesVisible

private boolean emptyNodesVisible
Constructor Detail

NetworkVizCreator

public NetworkVizCreator(float width,
                         float height,
                         Layout2D<TermNode> layout)
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(ConceptGraph<TermNode> graph,
                  VNode parent,
                  anl.aida.util.DateRange date)