edu.uci.ics.jung.visualization.renderers
Class BasicRenderer<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.renderers.BasicRenderer<V,E>
- All Implemented Interfaces:
- Renderer<V,E>
public class BasicRenderer<V,E>
- extends Object
- implements Renderer<V,E>
The default implementation of the Renderer used by the
VisualizationViewer. Default Vertex and Edge Renderers
are supplied, or the user may set custom values. The
Vertex and Edge renderers are used in the renderVertex
and renderEdge methods, which are called in the render
loop of the VisualizationViewer.
- Author:
- Tom Nelson
Method Summary |
Renderer.EdgeLabel<V,E> |
getEdgeLabelRenderer()
|
Renderer.Edge<V,E> |
getEdgeRenderer()
|
Renderer.VertexLabel<V,E> |
getVertexLabelRenderer()
|
Renderer.Vertex<V,E> |
getVertexRenderer()
|
void |
render(RenderContext<V,E> renderContext,
Layout<V,E> layout)
|
void |
renderEdge(RenderContext<V,E> rc,
Layout<V,E> layout,
E e)
|
void |
renderEdgeLabel(RenderContext<V,E> rc,
Layout<V,E> layout,
E e)
|
void |
renderVertex(RenderContext<V,E> rc,
Layout<V,E> layout,
V v)
|
void |
renderVertexLabel(RenderContext<V,E> rc,
Layout<V,E> layout,
V v)
|
void |
setEdgeLabelRenderer(Renderer.EdgeLabel<V,E> edgeLabelRenderer)
|
void |
setEdgeRenderer(Renderer.Edge<V,E> r)
|
void |
setVertexLabelRenderer(Renderer.VertexLabel<V,E> vertexLabelRenderer)
|
void |
setVertexRenderer(Renderer.Vertex<V,E> r)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicRenderer
public BasicRenderer()
render
public void render(RenderContext<V,E> renderContext,
Layout<V,E> layout)
- Specified by:
render
in interface Renderer<V,E>
renderVertex
public void renderVertex(RenderContext<V,E> rc,
Layout<V,E> layout,
V v)
- Specified by:
renderVertex
in interface Renderer<V,E>
renderVertexLabel
public void renderVertexLabel(RenderContext<V,E> rc,
Layout<V,E> layout,
V v)
- Specified by:
renderVertexLabel
in interface Renderer<V,E>
renderEdge
public void renderEdge(RenderContext<V,E> rc,
Layout<V,E> layout,
E e)
- Specified by:
renderEdge
in interface Renderer<V,E>
renderEdgeLabel
public void renderEdgeLabel(RenderContext<V,E> rc,
Layout<V,E> layout,
E e)
- Specified by:
renderEdgeLabel
in interface Renderer<V,E>
setVertexRenderer
public void setVertexRenderer(Renderer.Vertex<V,E> r)
- Specified by:
setVertexRenderer
in interface Renderer<V,E>
setEdgeRenderer
public void setEdgeRenderer(Renderer.Edge<V,E> r)
- Specified by:
setEdgeRenderer
in interface Renderer<V,E>
getEdgeLabelRenderer
public Renderer.EdgeLabel<V,E> getEdgeLabelRenderer()
- Specified by:
getEdgeLabelRenderer
in interface Renderer<V,E>
- Returns:
- the edgeLabelRenderer
setEdgeLabelRenderer
public void setEdgeLabelRenderer(Renderer.EdgeLabel<V,E> edgeLabelRenderer)
- Specified by:
setEdgeLabelRenderer
in interface Renderer<V,E>
- Parameters:
edgeLabelRenderer
- the edgeLabelRenderer to set
getVertexLabelRenderer
public Renderer.VertexLabel<V,E> getVertexLabelRenderer()
- Specified by:
getVertexLabelRenderer
in interface Renderer<V,E>
- Returns:
- the vertexLabelRenderer
setVertexLabelRenderer
public void setVertexLabelRenderer(Renderer.VertexLabel<V,E> vertexLabelRenderer)
- Specified by:
setVertexLabelRenderer
in interface Renderer<V,E>
- Parameters:
vertexLabelRenderer
- the vertexLabelRenderer to set
getEdgeRenderer
public Renderer.Edge<V,E> getEdgeRenderer()
- Specified by:
getEdgeRenderer
in interface Renderer<V,E>
- Returns:
- the edgeRenderer
getVertexRenderer
public Renderer.Vertex<V,E> getVertexRenderer()
- Specified by:
getVertexRenderer
in interface Renderer<V,E>
- Returns:
- the vertexRenderer
Copyright © 2009. All Rights Reserved.