Package ghidra.graph.viewer.renderer
Class VisualGraphRenderer<V extends VisualVertex,E extends VisualEdge<V>>
java.lang.Object
edu.uci.ics.jung.visualization.renderers.BasicRenderer<V,E>
ghidra.graph.viewer.renderer.VisualGraphRenderer<V,E>
- Type Parameters:
V- the vertex typeE- the edge type
- All Implemented Interfaces:
edu.uci.ics.jung.visualization.renderers.Renderer<V,E>
public class VisualGraphRenderer<V extends VisualVertex,E extends VisualEdge<V>>
extends edu.uci.ics.jung.visualization.renderers.BasicRenderer<V,E>
This was created to add the ability to paint selected vertices above other vertices. We need
this since the Jung Graph has no notion of Z-order and thus does not let us specify that any
particular vertex should be above another one.
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.renderers.Renderer
edu.uci.ics.jung.visualization.renderers.Renderer.Edge<V,E>, edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<V, E>, edu.uci.ics.jung.visualization.renderers.Renderer.Vertex<V, E>, edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel<V, E> -
Constructor Summary
ConstructorsConstructorDescriptionVisualGraphRenderer(edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<V, E> edgeLabelRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(edu.uci.ics.jung.visualization.RenderContext<V, E> renderContext, edu.uci.ics.jung.algorithms.layout.Layout<V, E> layout) voidrenderEdgeLabel(edu.uci.ics.jung.visualization.RenderContext<V, E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V, E> layout, E e) voidrenderVertexLabel(edu.uci.ics.jung.visualization.RenderContext<V, E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V, E> layout, V v) static voidsetGridPainter(GridPainter gridPainter) Sets a painter to show an underlying grid.Methods inherited from class edu.uci.ics.jung.visualization.renderers.BasicRenderer
getEdgeLabelRenderer, getEdgeRenderer, getVertexLabelRenderer, getVertexRenderer, renderEdge, renderVertex, setEdgeLabelRenderer, setEdgeRenderer, setVertexLabelRenderer, setVertexRenderer
-
Constructor Details
-
VisualGraphRenderer
-
-
Method Details
-
setGridPainter
Sets a painter to show an underlying grid. (To see a layout's associated grid, search for calls to this method and un-comment them)- Parameters:
gridPainter- A painter that paints the grid that a layout was based on.
-
render
public void render(edu.uci.ics.jung.visualization.RenderContext<V, E> renderContext, edu.uci.ics.jung.algorithms.layout.Layout<V, E> layout) - Specified by:
renderin interfaceedu.uci.ics.jung.visualization.renderers.Renderer<V extends VisualVertex,E extends VisualEdge<V>> - Overrides:
renderin classedu.uci.ics.jung.visualization.renderers.BasicRenderer<V extends VisualVertex,E extends VisualEdge<V>>
-
renderVertexLabel
public void renderVertexLabel(edu.uci.ics.jung.visualization.RenderContext<V, E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V, E> layout, V v) - Specified by:
renderVertexLabelin interfaceedu.uci.ics.jung.visualization.renderers.Renderer<V extends VisualVertex,E extends VisualEdge<V>> - Overrides:
renderVertexLabelin classedu.uci.ics.jung.visualization.renderers.BasicRenderer<V extends VisualVertex,E extends VisualEdge<V>>
-
renderEdgeLabel
public void renderEdgeLabel(edu.uci.ics.jung.visualization.RenderContext<V, E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V, E> layout, E e) - Specified by:
renderEdgeLabelin interfaceedu.uci.ics.jung.visualization.renderers.Renderer<V extends VisualVertex,E extends VisualEdge<V>> - Overrides:
renderEdgeLabelin classedu.uci.ics.jung.visualization.renderers.BasicRenderer<V extends VisualVertex,E extends VisualEdge<V>>
-