|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.viz.AbstractEdgeStyler
anl.aida.viz.GrayScaleEdgeStyler
public class GrayScaleEdgeStyler
Styles edges such that the edges are drawn on a gray scale such that 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 | |
---|---|
GrayScaleEdgeStyler(ConceptGraph<TermNode> graph)
|
Method Summary | |
---|---|
java.awt.Paint |
getPaint(CGEdge edge)
Gets the paint appropriate for the specified edge. |
private float |
scale(CGEdge edge)
|
void |
update(java.util.Collection<CGEdge> edges)
Updates the styler with new edge info. |
Methods inherited from class anl.aida.viz.AbstractEdgeStyler |
---|
createEdge |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
float min
float max
float diff
Constructor Detail |
---|
public GrayScaleEdgeStyler(ConceptGraph<TermNode> graph)
Method Detail |
---|
public void update(java.util.Collection<CGEdge> edges)
EdgeStyler
public java.awt.Paint getPaint(CGEdge edge)
EdgeStyler
edge
- the edge we want the paint for
private float scale(CGEdge edge)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |