Class LightweightVertexRenderer<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.renderers.AbstractVertexRenderer<V,E>
-
- org.jungrapht.visualization.renderers.LightweightVertexRenderer<V,E>
-
- Type Parameters:
V- vertex typeE- edge type
- All Implemented Interfaces:
Renderer.Vertex<V,E>
- Direct Known Subclasses:
LightweightVertexSelectionRenderer
public class LightweightVertexRenderer<V,E> extends AbstractVertexRenderer<V,E> implements Renderer.Vertex<V,E>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jungrapht.visualization.renderers.Renderer.Vertex
Renderer.Vertex.NOOP<V,E>
-
-
Field Summary
Fields Modifier and Type Field Description protected Function<V,Shape>simpleVertexShapeFunction
-
Constructor Summary
Constructors Constructor Description LightweightVertexRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ShapegetVertexShape(RenderContext<V,E> renderContext, V vertex)LightweightVertexRenderer overrides to provide a lightweight shape HeavyweightVertexRenderer uses the configured vertexShapeFunctionFunction<V,Shape>getVertexShapeFunction()protected voidpaintIconForVertex(RenderContext<V,E> renderContext, LayoutModel<V> layoutModel, V v)Paintv's icon ongat(x,y).voidsetVertexShapeFunction(Function<V,Shape> vertexShapeFunction)-
Methods inherited from class org.jungrapht.visualization.renderers.AbstractVertexRenderer
paintShapeForVertex, paintVertex, prepareFinalVertexShape
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jungrapht.visualization.renderers.Renderer.Vertex
paintVertex
-
-
-
-
Method Detail
-
getVertexShape
protected Shape getVertexShape(RenderContext<V,E> renderContext, V vertex)
Description copied from class:AbstractVertexRendererLightweightVertexRenderer overrides to provide a lightweight shape HeavyweightVertexRenderer uses the configured vertexShapeFunction- Specified by:
getVertexShapein classAbstractVertexRenderer<V,E>- Returns:
-
paintIconForVertex
protected void paintIconForVertex(RenderContext<V,E> renderContext, LayoutModel<V> layoutModel, V v)
Paintv's icon ongat(x,y). Paints only the shape, unlike HeavyweightVertexRenderer, which will paint an icon if supplied- Specified by:
paintIconForVertexin classAbstractVertexRenderer<V,E>- Parameters:
v- the vertex to be painted
-
-