scratch.danyel.sample
Class FadeRenderer

java.lang.Object
  extended by edu.uci.ics.jung.visualization.AbstractRenderer
      extended by scratch.danyel.sample.FadeRenderer
All Implemented Interfaces:
Renderer
Direct Known Subclasses:
FadeBetweennessRenderer

public class FadeRenderer
extends AbstractRenderer


Field Summary
static boolean debug
           
protected static int RANGE
           
 
Constructor Summary
FadeRenderer(StringLabeller sl, FadingVertexLayout fvl)
           
 
Method Summary
protected  void drawNode(Graphics g, Vertex v, int x, int y, boolean isHidden, int level, String label)
           
 void paintEdge(Graphics g, Edge e, int x1, int y1, int x2, int y2)
           
 void paintVertex(Graphics g, Vertex v, int x, int y)
           
protected  Color pickColor(boolean isHidden, int level, Color color)
           
 
Methods inherited from class edu.uci.ics.jung.visualization.AbstractRenderer
getPickedKey, isPicked, isPicked, setPickedKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug

RANGE

protected static int RANGE
Constructor Detail

FadeRenderer

public FadeRenderer(StringLabeller sl,
                    FadingVertexLayout fvl)
Method Detail

paintEdge

public void paintEdge(Graphics g,
                      Edge e,
                      int x1,
                      int y1,
                      int x2,
                      int y2)
Specified by:
paintEdge in interface Renderer
Specified by:
paintEdge in class AbstractRenderer

paintVertex

public void paintVertex(Graphics g,
                        Vertex v,
                        int x,
                        int y)
Specified by:
paintVertex in interface Renderer
Specified by:
paintVertex in class AbstractRenderer

drawNode

protected void drawNode(Graphics g,
                        Vertex v,
                        int x,
                        int y,
                        boolean isHidden,
                        int level,
                        String label)

pickColor

protected Color pickColor(boolean isHidden,
                          int level,
                          Color color)
Parameters:
isHidden -
level -
color -
Returns: