Package ghidra.graph.viewer.shape
Class ArticulatedEdgeTransformer<V extends VisualVertex,E extends VisualEdge<V>>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.decorators.ParallelEdgeShapeTransformer<V,E>
-
- ghidra.graph.viewer.shape.ArticulatedEdgeTransformer<V,E>
-
- Type Parameters:
V
- the vertex typeE
- the edge type
- All Implemented Interfaces:
com.google.common.base.Function<E,java.awt.Shape>
public class ArticulatedEdgeTransformer<V extends VisualVertex,E extends VisualEdge<V>> extends edu.uci.ics.jung.visualization.decorators.ParallelEdgeShapeTransformer<V,E>
An edge shape that renders as a series of straight lines between articulation points.
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
OVERLAPPING_EDGE_OFFSET
-
Constructor Summary
Constructors Constructor Description ArticulatedEdgeTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Shape
apply(E e)
Get the shape for this edge, returning either the shared instance or, in the case of self-loop edges, the Loop shared instance.int
getOverlapOffset(E edge)
Returns a value by which to offset edges that overlap.-
Methods inherited from class edu.uci.ics.jung.visualization.decorators.ParallelEdgeShapeTransformer
getEdgeIndexFunction, setControlOffsetIncrement, setEdgeIndexFunction
-
-
-
-
Field Detail
-
OVERLAPPING_EDGE_OFFSET
protected static final int OVERLAPPING_EDGE_OFFSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOverlapOffset
public int getOverlapOffset(E edge)
Returns a value by which to offset edges that overlap. This is used to make the edges easier to see.- Parameters:
edge
- the edge- Returns:
- the offset value
-
apply
public java.awt.Shape apply(E e)
Get the shape for this edge, returning either the shared instance or, in the case of self-loop edges, the Loop shared instance.
-
-