Interface EdgeShape
-
public interface EdgeShapeAn interface for decorators that return aShapefor 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 Renderer.
- Author:
- Tom Nelson
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEdgeShape.ArticulatedLine<V,E>static classEdgeShape.Box<V,E>Deprecated.static classEdgeShape.CubicCurve<V,E>An edge shape that renders as a CubicCurve between vertex endpoints.static classEdgeShape.Line<V,E>An edge shape that renders as a straight line between the vertex endpoints.static classEdgeShape.Loop<V,E>An edge shape that renders as a loop with its nadir at the center of the vertex.static classEdgeShape.Orthogonal<V,E>An edge shape that renders as a bent-line between the vertex endpoints.static classEdgeShape.QuadCurve<V,E>An edge shape that renders as a QuadCurve between vertex endpoints.static classEdgeShape.SimpleLoop<E>An edge shape that renders as a loop with its nadir at the center of the vertex.static classEdgeShape.Wedge<V,E>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
Fields Modifier and Type Field Description static Rectangle2DBOXstatic CubicCurve2DCUBIC_CURVEstatic Ellipse2DELLIPSEstatic Line2DLINEstatic EdgeShape.LooploopA convenience instance for other edge shapes to use for self-loop edges where parallel instances will not overlay each other.static QuadCurve2DQUAD_CURVEstatic EdgeShape.WedgeWEDGE
-
Method Summary
All Methods Static Methods Deprecated Methods Modifier and Type Method Description static <V,E>
EdgeShape.ArticulatedLine<V,E>articulatedLine()static ShapebuildFrame(RectangularShape shape, int index)static <V,E>
EdgeShape.CubicCurve<V,E>cubicCurve()static <E> booleanisLoop(org.jgrapht.Graph<?,E> graph, E edge)static <V,E>
EdgeShape.Line<V,E>line()static <V,E>
EdgeShape.Orthogonal<V,E>orthogonal()Deprecated.static <V,E>
EdgeShape.QuadCurve<V,E>quadCurve()static <V,E>
EdgeShape.Wedge<V,E>wedge()
-
-
-
Field Detail
-
LINE
static final Line2D LINE
-
QUAD_CURVE
static final QuadCurve2D QUAD_CURVE
-
CUBIC_CURVE
static final CubicCurve2D CUBIC_CURVE
-
ELLIPSE
static final Ellipse2D ELLIPSE
-
BOX
static final Rectangle2D BOX
-
WEDGE
static final EdgeShape.Wedge WEDGE
-
loop
static final EdgeShape.Loop loop
A convenience instance for other edge shapes to use for self-loop edges where parallel instances will not overlay each other.
-
-
Method Detail
-
isLoop
static <E> boolean isLoop(org.jgrapht.Graph<?,E> graph, E edge)
-
line
static <V,E> EdgeShape.Line<V,E> line()
-
quadCurve
static <V,E> EdgeShape.QuadCurve<V,E> quadCurve()
-
cubicCurve
static <V,E> EdgeShape.CubicCurve<V,E> cubicCurve()
-
wedge
static <V,E> EdgeShape.Wedge<V,E> wedge()
-
orthogonal
@Deprecated static <V,E> EdgeShape.Orthogonal<V,E> orthogonal()
Deprecated.
-
articulatedLine
static <V,E> EdgeShape.ArticulatedLine<V,E> articulatedLine()
-
buildFrame
static Shape buildFrame(RectangularShape shape, int index)
-
-