public enum Quadrant extends Enum<Quadrant>
| Enum Constant and Description |
|---|
I
If point.x >= origin.x && point.y <= origin.y.
|
II
If point.x < origin.x && point.y > origin.y.
|
III
If point.x <= origin.x && point.y >= origin.y.
|
IV
If point.x > origin.x && point.y > origin.y.
|
NONE
If the quadrant is undefined.
|
| Modifier and Type | Method and Description |
|---|---|
static Quadrant |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Quadrant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Quadrant NONE
public static final Quadrant I
public static final Quadrant II
public static final Quadrant III
public static final Quadrant IV
public static Quadrant[] values()
for (Quadrant c : Quadrant.values()) System.out.println(c);
public static Quadrant 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 nullCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.