Package ghidra.graph.viewer.edge
Class VisualGraphEdgeSatelliteRenderer<V extends VisualVertex,E extends VisualEdge<V>>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.renderers.BasicEdgeRenderer<V,E>
-
- ghidra.graph.viewer.edge.VisualEdgeRenderer<V,E>
-
- ghidra.graph.viewer.edge.VisualGraphEdgeSatelliteRenderer<V,E>
-
- All Implemented Interfaces:
edu.uci.ics.jung.visualization.renderers.Renderer.Edge<V,E>
public class VisualGraphEdgeSatelliteRenderer<V extends VisualVertex,E extends VisualEdge<V>> extends VisualEdgeRenderer<V,E>
A renderer designed to override default edge rendering to NOT paint emphasizing effects. We do this because space is limited in the satellite and because this rendering can take excess processing time.
-
-
Constructor Summary
Constructors Change Constructor Description VisualGraphEdgeSatelliteRenderer(VisualEdgeRenderer<V,E> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description java.awt.ShapegetEdgeShape(edu.uci.ics.jung.visualization.RenderContext<V,E> rc, edu.uci.ics.jung.graph.Graph<V,E> graph, E e, float x1, float y1, float x2, float y2, boolean isLoop, java.awt.Shape vertexShape)Returns the edge shape for the given pointsprotected java.awt.ShapegetVertexShapeForArrow(edu.uci.ics.jung.visualization.RenderContext<V,E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, V v)NEW protected booleanisEmphasiszed(E e)NEW protected booleanisInActivePath(E e)NEW protected booleanisSelected(E e)-
Methods inherited from class ghidra.graph.viewer.edge.VisualEdgeRenderer
drawSimpleEdge, getBaseColor, getCompactShape, getFullShape, getHighlightColor, setBaseColor, setDashingPatternOffset, setHighlightColor, transformFromLayoutToView
-
-
-
-
Constructor Detail
-
VisualGraphEdgeSatelliteRenderer
public VisualGraphEdgeSatelliteRenderer(VisualEdgeRenderer<V,E> delegate)
-
-
Method Detail
-
isInActivePath NEW
protected boolean isInActivePath(E e)
- Overrides:
isInActivePathin classVisualEdgeRenderer<V extends VisualVertex,E extends VisualEdge<V>>
-
isSelected NEW
protected boolean isSelected(E e)
- Overrides:
isSelectedin classVisualEdgeRenderer<V extends VisualVertex,E extends VisualEdge<V>>
-
isEmphasiszed NEW
protected boolean isEmphasiszed(E e)
- Overrides:
isEmphasiszedin classVisualEdgeRenderer<V extends VisualVertex,E extends VisualEdge<V>>
-
getEdgeShape
public java.awt.Shape getEdgeShape(edu.uci.ics.jung.visualization.RenderContext<V,E> rc, edu.uci.ics.jung.graph.Graph<V,E> graph, E e, float x1, float y1, float x2, float y2, boolean isLoop, java.awt.Shape vertexShape)
Description copied from class:VisualEdgeRendererReturns the edge shape for the given points- Specified by:
getEdgeShapein classVisualEdgeRenderer<V extends VisualVertex,E extends VisualEdge<V>>- Parameters:
rc- the render context for the graphgraph- the graphe- the edge to shapex1- the start vertex point xy1- the start vertex point yx2- the end vertex point xy2- the end vertex point yisLoop- true if the start == end, which is a self-loopvertexShape- the vertex shape (used in the case of a loop to draw a circle from the shape to itself)- Returns:
- the edge shape
-
getVertexShapeForArrow
protected java.awt.Shape getVertexShapeForArrow(edu.uci.ics.jung.visualization.RenderContext<V,E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, V v)
- Overrides:
getVertexShapeForArrowin classVisualEdgeRenderer<V extends VisualVertex,E extends VisualEdge<V>>
-
-