Class EdgeShape<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.decorators.EdgeShape<V,E>
- Type Parameters:
V
- the vertex typeE
- the edge type
An interface for decorators that return a
Shape
for a specified edge.
All edge shapes must be defined so that their endpoints are at
(0,0) and (1,0). They will be scaled, rotated and translated into
position by the PluggableRenderer.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
An edge shape that renders as a bent-line between the vertex endpoints.class
An edge shape that renders as a diamond with its nadir at the center of the vertex.class
An edge shape that renders as a CubicCurve between vertex endpoints.class
An edge shape that renders as a straight line between the vertex endpoints.class
An edge shape that renders as a loop with its nadir at the center of the vertex.class
An edge shape that renders as a bent-line between the vertex endpoints.class
An edge shape that renders as a QuadCurve between vertex endpoints.class
An edge shape that renders as a loop with its nadir at the center of the vertex.class
An edge shape that renders as an isosceles triangle whose apex is at the destination vertex for directed edges, and as a "bowtie" shape for undirected edges. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final GeneralPath
private static GeneralPath
private static Rectangle2D
private static final CubicCurve2D
private static final Ellipse2D
private static final Line2D
A convenience instance for other edge shapes to use for self-loop edges where parallel instances will not overlay each other.private static final QuadCurve2D
protected final EdgeShape<V,
E>.SimpleLoop A convenience instance for other edge shapes to use for self-loop edges where parallel instances overlay each other.private static GeneralPath
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Shape
buildFrame
(RectangularShape shape, int index) cubicCurve
(Graph<V, E> graph) private int
getIndex
(E e, EdgeIndexFunction<V, E> edgeIndexFunction) private Shape
getLoopOrNull
(E e) private Shape
getLoopOrNull
(E e, com.google.common.base.Function<? super E, Shape> loop) static <V,
E> EdgeShape<V, E>.Orthogonal orthogonal
(Graph<V, E> graph)
-
Field Details
-
LINE
-
BENT_LINE
-
QUAD_CURVE
-
CUBIC_CURVE
-
ELLIPSE
-
BOX
-
triangle
-
bowtie
-
graph
-
loop
A convenience instance for other edge shapes to use for self-loop edges where parallel instances will not overlay each other. -
simpleLoop
A convenience instance for other edge shapes to use for self-loop edges where parallel instances overlay each other. -
box
-
-
Constructor Details
-
EdgeShape
-
-
Method Details
-
getLoopOrNull
-
getLoopOrNull
-
line
-
quadCurve
-
cubicCurve
-
orthogonal
-
wedge
-
getIndex
-
buildFrame
-