anl.aida.viz
Class DefaultNodeStyler

java.lang.Object
  extended by anl.aida.viz.AbstractCircleNodeStyler
      extended by anl.aida.viz.DefaultNodeStyler
All Implemented Interfaces:
NodeStyler

public class DefaultNodeStyler
extends AbstractCircleNodeStyler

Node style implementation that scales the size of the ellipse with respect the document count average.


Field Summary
private  float avg
           
 
Fields inherited from class anl.aida.viz.AbstractCircleNodeStyler
BASE_NODE_SIZE
 
Constructor Summary
DefaultNodeStyler(java.awt.Paint nodePaint, java.awt.Paint textPaint, ConceptGraph<TermNode> graph)
           
 
Method Summary
 float getSize(TermNode tNode)
          Gets the size appropriate for the specified term node.
 
Methods inherited from class anl.aida.viz.AbstractCircleNodeStyler
createNode, getPaint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

avg

private float avg
Constructor Detail

DefaultNodeStyler

public DefaultNodeStyler(java.awt.Paint nodePaint,
                         java.awt.Paint textPaint,
                         ConceptGraph<TermNode> graph)
Method Detail

getSize

public float getSize(TermNode 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.