public static enum PinStyle.EndPosition extends Enum<PinStyle.EndPosition>
This is the location where the pin line connects to the label.
Enum Constant and Description |
---|
ClosestEdge
The pin connects to the label at the middle point of the label's edge that is closest to the label's anchor geometry.
|
ClosestPointOnEdge
The pin connects to the label at the position on any of the label's edges that is closest to the label's anchor geometry.
|
MiddleOfBoundsOnEdge
The pin connects to the label at the middle of the label bounds.
|
Modifier and Type | Method and Description |
---|---|
static PinStyle.EndPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PinStyle.EndPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PinStyle.EndPosition ClosestEdge
public static final PinStyle.EndPosition ClosestPointOnEdge
Note that this can include any of the corners of the label. This end position results in the smallest possible pin lines.
public static final PinStyle.EndPosition MiddleOfBoundsOnEdge
Additionally pin line is cut off where it crosses the edge of the label.
public static PinStyle.EndPosition[] values()
for (PinStyle.EndPosition c : PinStyle.EndPosition.values()) System.out.println(c);
public static PinStyle.EndPosition valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null