Serializable, Comparable<ScreenPart>public enum ScreenPart extends Enum<ScreenPart>
| Enum Constant | Description |
|---|---|
BOTTOM |
From bottom part to bottom part - border size.
|
CENTER |
If in none of the other screen parts.
|
LEFT |
From left part of screen to left part + border size.
|
LEFT_BOTTOM |
From bottom and left part.
|
LEFT_UP |
From top and left part.
|
RIGHT |
From right part of screen to right part - border size.
|
RIGHT_BOTTOM |
From bottom and right part.
|
RIGHT_UP |
From top and right part.
|
UP |
From top part to top part + border size.
|
| Modifier and Type | Method | Description |
|---|---|---|
be.yildizgames.common.geometry.Point3D |
getDirection() |
|
static ScreenPart |
getFromPosition(Size res,
MousePosition position) |
Retrieve the screen part containing the given position.
|
static ScreenPart |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ScreenPart[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScreenPart LEFT
public static final ScreenPart RIGHT
public static final ScreenPart UP
public static final ScreenPart BOTTOM
public static final ScreenPart LEFT_UP
public static final ScreenPart RIGHT_UP
public static final ScreenPart LEFT_BOTTOM
public static final ScreenPart RIGHT_BOTTOM
public static final ScreenPart CENTER
public static ScreenPart[] values()
for (ScreenPart c : ScreenPart.values()) System.out.println(c);
public static ScreenPart 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 nullpublic static ScreenPart getFromPosition(Size res, MousePosition position)
res - Rectangle with the screen size.position - Position to check.public be.yildizgames.common.geometry.Point3D getDirection()
Copyright © 2014–2018. All rights reserved.