V
- the vertex typeV
- the edge typepublic class GradientVertexRenderer<V,E> extends Object implements Renderer.Vertex<V,E>
Renderer.Vertex.NOOP
Constructor and Description |
---|
GradientVertexRenderer(Color colorOne,
Color colorTwo,
boolean cyclic) |
GradientVertexRenderer(Color colorOne,
Color colorTwo,
Color pickedColorOne,
Color pickedColorTwo,
PickedState<V> pickedState,
boolean cyclic) |
Modifier and Type | Method and Description |
---|---|
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) |
public GradientVertexRenderer(Color colorOne, Color colorTwo, boolean cyclic)
public void paintVertex(RenderContext<V,E> rc, Layout<V,E> layout, V v)
paintVertex
in interface Renderer.Vertex<V,E>
protected boolean vertexHit(RenderContext<V,E> rc, Shape s)
protected void paintShapeForVertex(RenderContext<V,E> rc, V v, Shape shape)
Copyright © 2015. All rights reserved.