V - the vertex typeE - the edge typepublic class EdgeShape<V,E> extends Object
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.| Modifier and Type | Class and Description |
|---|---|
class |
EdgeShape.BentLine
An edge shape that renders as a bent-line between the
vertex endpoints.
|
class |
EdgeShape.Box
An edge shape that renders as a diamond with its nadir at the
center of the vertex.
|
class |
EdgeShape.CubicCurve
An edge shape that renders as a CubicCurve between vertex
endpoints.
|
class |
EdgeShape.Line
An edge shape that renders as a straight line between
the vertex endpoints.
|
class |
EdgeShape.Loop
An edge shape that renders as a loop with its nadir at the
center of the vertex.
|
class |
EdgeShape.Orthogonal
An edge shape that renders as a bent-line between the vertex endpoints.
|
class |
EdgeShape.QuadCurve
An edge shape that renders as a QuadCurve between vertex
endpoints.
|
class |
EdgeShape.SimpleLoop
An edge shape that renders as a loop with its nadir at the center of the
vertex.
|
class |
EdgeShape.Wedge
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.
|
| Modifier and Type | Field and Description |
|---|---|
protected EdgeShape.Box |
box |
protected Graph<V,E> |
graph |
protected EdgeShape.Loop |
loop
A convenience instance for other edge shapes to use for self-loop edges
where parallel instances will not overlay each other.
|
protected EdgeShape.SimpleLoop |
simpleLoop
A convenience instance for other edge shapes to use for self-loop edges
where parallel instances overlay each other.
|
| Modifier and Type | Method and Description |
|---|---|
static <V,E> EdgeShape.QuadCurve |
cubicCurve(Graph<V,E> graph) |
static <V,E> EdgeShape.Line |
line(Graph<V,E> graph) |
static <V,E> EdgeShape.Orthogonal |
orthogonal(Graph<V,E> graph) |
static <V,E> EdgeShape.QuadCurve |
quadCurve(Graph<V,E> graph) |
static <V,E> EdgeShape.Wedge |
wedge(Graph<V,E> graph,
int width) |
protected final EdgeShape.Loop loop
protected final EdgeShape.SimpleLoop simpleLoop
protected final EdgeShape.Box box
public static <V,E> EdgeShape.Line line(Graph<V,E> graph)
public static <V,E> EdgeShape.QuadCurve quadCurve(Graph<V,E> graph)
public static <V,E> EdgeShape.QuadCurve cubicCurve(Graph<V,E> graph)
public static <V,E> EdgeShape.Orthogonal orthogonal(Graph<V,E> graph)
public static <V,E> EdgeShape.Wedge wedge(Graph<V,E> graph, int width)
Copyright © 2016. All rights reserved.