edu.uci.ics.jung.visualization.renderers
Class GradientVertexRenderer<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.renderers.GradientVertexRenderer<V,E>
- Type Parameters:
V
- E
-
- All Implemented Interfaces:
- Renderer.Vertex<V,E>
public class GradientVertexRenderer<V,E>
- extends Object
- implements Renderer.Vertex<V,E>
A renderer that will fill vertex shapes with a GradientPaint
- Author:
- Tom Nelson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GradientVertexRenderer
public GradientVertexRenderer(Color colorOne,
Color colorTwo,
boolean cyclic)
GradientVertexRenderer
public GradientVertexRenderer(Color colorOne,
Color colorTwo,
Color pickedColorOne,
Color pickedColorTwo,
PickedState<V> pickedState,
boolean cyclic)
paintVertex
public void paintVertex(RenderContext<V,E> rc,
Layout<V,E> layout,
V v)
- Specified by:
paintVertex
in interface Renderer.Vertex<V,E>
vertexHit
protected boolean vertexHit(RenderContext<V,E> rc,
Shape s)
paintShapeForVertex
protected void paintShapeForVertex(RenderContext<V,E> rc,
V v,
Shape shape)
Copyright © 2009. All Rights Reserved.