edu.uci.ics.jung.visualization.renderers
Class GradientVertexRenderer<V,E>

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.renderers.Renderer.Vertex
Renderer.Vertex.NOOP
 
Constructor Summary
GradientVertexRenderer(Color colorOne, Color colorTwo, boolean cyclic)
           
GradientVertexRenderer(Color colorOne, Color colorTwo, Color pickedColorOne, Color pickedColorTwo, PickedState<V> pickedState, boolean cyclic)
           
 
Method Summary
protected  void paintShapeForVertex(RenderContext<V,E> rc, V v, Shape shape)
           
 void paintVertex(RenderContext<V,E> rc, Layout<V,E> layout, V v)
           
protected  boolean vertexHit(RenderContext<V,E> rc, Shape s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.