scratch.danyel.sample
Class FadeRenderer
java.lang.Object
edu.uci.ics.jung.visualization.AbstractRenderer
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
public static boolean debug
RANGE
protected static int RANGE
FadeRenderer
public FadeRenderer(StringLabeller sl,
FadingVertexLayout fvl)
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: