public enum AbsoluteCompass extends java.lang.Enum<AbsoluteCompass> implements Compass
Enum Constant and Description |
---|
BOTTOM
Constant indicating the "bottom" (south) absolute compass-point.
|
LEFT
Constant indicating the "left" (west) absolute compass-point.
|
RIGHT
Constant indicating the "right" (east) absolute compass-point.
|
TOP
Constant indicating the "top" (north) absolute compass-point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAbsolute()
Indicates whether this compass direction is an absolute direction.
|
boolean |
isRelative()
Indicates whether this compass direction is a relative direction.
|
static AbsoluteCompass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AbsoluteCompass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbsoluteCompass LEFT
public static final AbsoluteCompass RIGHT
public static final AbsoluteCompass TOP
public static final AbsoluteCompass BOTTOM
public static AbsoluteCompass[] values()
for (AbsoluteCompass c : AbsoluteCompass.values()) System.out.println(c);
public static AbsoluteCompass 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 boolean isRelative()
Compass
isRelative
in interface Compass
public boolean isAbsolute()
Compass
isAbsolute
in interface Compass
This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.