Modifier and Type | Field and Description |
---|---|
private static int |
MIN_SEGMENT |
Modifier and Type | Method and Description |
---|---|
private static java.awt.geom.Point2D[] |
connectionPoints(java.awt.geom.Rectangle2D r)
Gets the four connecting points at which a bent line
connects to a rectangle.
|
private static java.util.ArrayList<java.awt.geom.Point2D> |
getPath(BentStyle bent,
java.awt.geom.Rectangle2D s,
java.awt.geom.Rectangle2D e)
Gets the points at which a line joining two rectangles
is bent according to a bent style.
|
java.util.ArrayList<java.awt.geom.Point2D> |
getPath(java.awt.geom.Rectangle2D start,
java.awt.geom.Rectangle2D end)
Gets the points at which a line joining two rectangles
is bent according to this bent style.
|
static BentStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BentStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
private static final int MIN_SEGMENT
public static BentStyle[] values()
for (BentStyle c : BentStyle.values()) System.out.println(c);
public static BentStyle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.ArrayList<java.awt.geom.Point2D> getPath(java.awt.geom.Rectangle2D start, java.awt.geom.Rectangle2D end)
start
- the starting rectangleend
- the ending rectangleprivate static java.awt.geom.Point2D[] connectionPoints(java.awt.geom.Rectangle2D r)
private static java.util.ArrayList<java.awt.geom.Point2D> getPath(BentStyle bent, java.awt.geom.Rectangle2D s, java.awt.geom.Rectangle2D e)