anl.aida.viz3d
Class NodeStyler<T extends ValueNode>

java.lang.Object
  extended by anl.aida.viz3d.NodeStyler<T>

public class NodeStyler<T extends ValueNode>
extends java.lang.Object


Field Summary
private  float avg
           
private static float BASE_NODE_SIZE
           
private  MaterialAppearence nodeApp
           
private  java.awt.Color textColor
           
 
Constructor Summary
NodeStyler(java.awt.Color nodeColor, java.awt.Color textColor, java.util.Collection<T> vertices)
           
NodeStyler(java.awt.Color nodeColor, java.awt.Color textColor, float avg)
           
 
Method Summary
 LabeledShape createNode(T tNode, java.awt.geom.Point2D coord)
           
 float getSize(T tNode)
          Gets the size appropriate for the specified term node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_NODE_SIZE

private static float BASE_NODE_SIZE

textColor

private java.awt.Color textColor

nodeApp

private MaterialAppearence nodeApp

avg

private float avg
Constructor Detail

NodeStyler

public NodeStyler(java.awt.Color nodeColor,
                  java.awt.Color textColor,
                  float avg)

NodeStyler

public NodeStyler(java.awt.Color nodeColor,
                  java.awt.Color textColor,
                  java.util.Collection<T> vertices)
Method Detail

createNode

public LabeledShape createNode(T tNode,
                               java.awt.geom.Point2D coord)

getSize

public float getSize(T tNode)
Gets the size appropriate for the specified term node.

Parameters:
tNode - the node to get the size for
Returns:
the size appropriate for the specified term node.