Class BasicVertexRenderer<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.renderers.BasicVertexRenderer<V,E>
- All Implemented Interfaces:
Renderer.Vertex<V,E>
- Direct Known Subclasses:
CachingVertexRenderer
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.renderers.Renderer.Vertex
Renderer.Vertex.NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidpaintIconForVertex(RenderContext<V, E> rc, V v, Layout<V, E> layout) Paintv's icon ongat(x,y).protected voidpaintShapeForVertex(RenderContext<V, E> rc, V v, Shape shape) voidpaintVertex(RenderContext<V, E> rc, Layout<V, E> layout, V v) protected ShapeprepareFinalVertexShape(RenderContext<V, E> rc, V v, Layout<V, E> layout, int[] coords) Returns the vertex shape in view coordinates.protected booleanvertexHit(RenderContext<V, E> rc, Shape s)
-
Constructor Details
-
BasicVertexRenderer
public BasicVertexRenderer()
-
-
Method Details
-
paintVertex
- Specified by:
paintVertexin interfaceRenderer.Vertex<V,E>
-
prepareFinalVertexShape
protected Shape prepareFinalVertexShape(RenderContext<V, E> rc, V v, Layout<V, E> layout, int[] coords) Returns the vertex shape in view coordinates.- Parameters:
rc- the render context used for rendering the vertexv- the vertex whose shape is to be returnedlayout- the layout algorithm that provides coordinates for the vertexcoords- the x and y view coordinates- Returns:
- the vertex shape in view coordinates
-
paintIconForVertex
Paintv's icon ongat(x,y).- Parameters:
rc- the render context used for rendering the vertexv- the vertex to be paintedlayout- the layout algorithm that provides coordinates for the vertex
-
vertexHit
-
paintShapeForVertex
-