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> -
Field Summary
Modifier and TypeFieldDescriptionstatic Map
<VisualGraphLayout<?, ?>, LayoutLocationMap<?, ?>> Used for displaying grid information for graph layouts -
Constructor Summary
ConstructorDescriptionVisualGraphRenderer
(edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<V, E> edgeLabelRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(edu.uci.ics.jung.visualization.RenderContext<V, E> renderContext, edu.uci.ics.jung.algorithms.layout.Layout<V, E> layout) void
renderEdgeLabel
(edu.uci.ics.jung.visualization.RenderContext<V, E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V, E> layout, E e) void
renderVertexLabel
(edu.uci.ics.jung.visualization.RenderContext<V, E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V, E> layout, V v) Methods inherited from class edu.uci.ics.jung.visualization.renderers.BasicRenderer
getEdgeLabelRenderer, getEdgeRenderer, getVertexLabelRenderer, getVertexRenderer, renderEdge, renderVertex, setEdgeLabelRenderer, setEdgeRenderer, setVertexLabelRenderer, setVertexRenderer
-
Field Details
-
DEBUG_ROW_COL_MAP
Used for displaying grid information for graph layouts
-
-
Constructor Details
-
VisualGraphRenderer
-
-
Method Details
-
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:
render
in interfaceedu.uci.ics.jung.visualization.renderers.Renderer<V extends VisualVertex,
E extends VisualEdge<V>> - Overrides:
render
in 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:
renderVertexLabel
in interfaceedu.uci.ics.jung.visualization.renderers.Renderer<V extends VisualVertex,
E extends VisualEdge<V>> - Overrides:
renderVertexLabel
in 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:
renderEdgeLabel
in interfaceedu.uci.ics.jung.visualization.renderers.Renderer<V extends VisualVertex,
E extends VisualEdge<V>> - Overrides:
renderEdgeLabel
in classedu.uci.ics.jung.visualization.renderers.BasicRenderer<V extends VisualVertex,
E extends VisualEdge<V>>
-