anl.aida.viz3d
Class NodeStyler<T extends ValueNode>
java.lang.Object
anl.aida.viz3d.NodeStyler<T>
public class NodeStyler<T extends ValueNode>
- extends java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE_NODE_SIZE
private static float BASE_NODE_SIZE
textColor
private java.awt.Color textColor
nodeApp
private MaterialAppearence nodeApp
avg
private float avg
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)
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.