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
,VertexImageShaperDemo.DemoRenderer
-
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 void
paintIconForVertex
(RenderContext<V, E> rc, V v, Layout<V, E> layout) Paintv
's icon ong
at(x,y)
.protected void
paintShapeForVertex
(RenderContext<V, E> rc, V v, Shape shape) void
paintVertex
(RenderContext<V, E> rc, Layout<V, E> layout, V v) protected Shape
prepareFinalVertexShape
(RenderContext<V, E> rc, V v, Layout<V, E> layout, int[] coords) Returns the vertex shape in view coordinates.protected boolean
vertexHit
(RenderContext<V, E> rc, Shape s)
-
Constructor Details
-
BasicVertexRenderer
public BasicVertexRenderer()
-
-
Method Details
-
paintVertex
- Specified by:
paintVertex
in 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 ong
at(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
-