public enum LineLocation extends java.lang.Enum<LineLocation>
Enum Constant and Description |
---|
AFTER
Specifies that the point is collinear with the line segment and located after its end
point on its infinite extension.
|
BEFORE
Specifies that the point is collinear with the line segment and located before its start
point on its infinite extension.
|
BETWEEN
Specifies that the point is collinear with the line segment and located between its
start and end point, exclusively.
|
END
Specifies that the point coincides with the end point.
|
LEFT
Specifies that the point is not collinear with the line segment and located to the left
of its infinite extension, viewed from start point to end point.
|
RIGHT
Specifies that the point is not collinear with the line segment and located to the right
of its infinite extension, viewed from start point to end point.
|
START
Specifies that the point coincides with the start point.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(LineLocation location)
Determines whether the specified
LineLocation indicates that a line segment contains a point. |
static LineLocation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LineLocation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineLocation BEFORE
public static final LineLocation START
public static final LineLocation BETWEEN
public static final LineLocation END
public static final LineLocation AFTER
public static final LineLocation LEFT
public static final LineLocation RIGHT
public static LineLocation[] values()
for (LineLocation c : LineLocation.values()) System.out.println(c);
public static LineLocation 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 static boolean contains(LineLocation location)
LineLocation
indicates that a line segment contains a point.
Uses an EnumSet
bit mask for efficient testing of LineLocation
values.location
- the LineLocation
to examine (may be null
)true
if the LineLocation
equals START
, BETWEEN
,
or END
, else false