anl.aida.viz3d
Class EdgeStyler

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

public class EdgeStyler
extends java.lang.Object

Styles edges such that each edge is drawn in a gray scale. Edges with more docs are darker than those with less.


Field Summary
(package private)  float diff
           
(package private)  float max
           
(package private)  float min
           
 
Constructor Summary
EdgeStyler(ConceptGraph<TermNode> graph)
          Create an EdgeStyler based on the edge values in the graph.
 
Method Summary
private  float calcScale(CGEdge edge)
           
 void style(VLine line)
          Styles the specified line.
 void update(java.util.Collection<CGEdge> edges)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

float min

max

float max

diff

float diff
Constructor Detail

EdgeStyler

public EdgeStyler(ConceptGraph<TermNode> graph)
Create an EdgeStyler based on the edge values in the graph.

Parameters:
graph -
Method Detail

style

public void style(VLine line)
Styles the specified line. This will calculate and then set the color of the line.

Parameters:
line - the line to style.

calcScale

private float calcScale(CGEdge edge)

update

public void update(java.util.Collection<CGEdge> edges)