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 extends java.lang.Object,E extends java.lang.Object>, edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<V extends java.lang.Object,E extends java.lang.Object>, edu.uci.ics.jung.visualization.renderers.Renderer.Vertex<V extends java.lang.Object,E extends java.lang.Object>, edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel<V extends java.lang.Object,E extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<edu.uci.ics.jung.graph.Graph<?,?>,LayoutLocationMap<?,?>>
DEBUG_ROW_COL_MAP
Used for displaying grid information for graph layouts
-
Constructor Summary
Constructors Constructor Description VisualGraphRenderer(edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<V,E> edgeLabelRenderer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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)
-
-
-
Field Detail
-
DEBUG_ROW_COL_MAP
public static java.util.Map<edu.uci.ics.jung.graph.Graph<?,?>,LayoutLocationMap<?,?>> DEBUG_ROW_COL_MAP
Used for displaying grid information for graph layouts
-
-
Method Detail
-
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>>
-
-