public enum ScreenOverlayOrigin extends Enum<ScreenOverlayOrigin> implements Enumeration
Enum Constant and Description |
---|
BOTTOM_CENTER
When the X and Y position are both set to 0, this value places the bottom edge of the overlay
at its parent's bottom edge and the center of the overlay is horizontally centered within its parent.
|
BOTTOM_LEFT
When the X and Y position are both set to 0, this value places the bottom, left corner
of the overlay in its parent's bottom, left corner.
|
BOTTOM_RIGHT
When the X and Y position are both set to 0, this value places the bottom, right corner
of the overlay in its parent's bottom, right corner.
|
CENTER
When the X and Y position are both set to 0, this value places the center of the overlay
at its parent's center.
|
CENTER_LEFT
When the X and Y position are both set to 0, this value places the left edge of the overlay
at its parent's left edge and the center of the overlay is vertically centered within its parent.
|
CENTER_RIGHT
When the X and Y position are both set to 0, this value places the right edge of the overlay
at its parent's right edge and the center of the overlay is vertically centered within its parent.
|
TOP_CENTER
When the X and Y position are both set to 0, this value places the top edge of the overlay
at its parent's top edge and the center of the overlay is horizontally centered within its parent.
|
TOP_LEFT
When the X and Y position are both set to 0, this value places the top, left corner
of the overlay in its parent's top, left corner.
|
TOP_RIGHT
When the X and Y position are both set to 0, this value places the top, right corner
of the overlay in its parent's top, right corner.
|
Modifier and Type | Method and Description |
---|---|
static ScreenOverlayOrigin |
getDefault()
Get the enum constant that is considered to be the default.
|
static ScreenOverlayOrigin |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static ScreenOverlayOrigin |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScreenOverlayOrigin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScreenOverlayOrigin BOTTOM_LEFT
public static final ScreenOverlayOrigin BOTTOM_CENTER
public static final ScreenOverlayOrigin BOTTOM_RIGHT
public static final ScreenOverlayOrigin CENTER_LEFT
public static final ScreenOverlayOrigin CENTER
public static final ScreenOverlayOrigin CENTER_RIGHT
public static final ScreenOverlayOrigin TOP_LEFT
public static final ScreenOverlayOrigin TOP_CENTER
public static final ScreenOverlayOrigin TOP_RIGHT
public static ScreenOverlayOrigin[] values()
for (ScreenOverlayOrigin c : ScreenOverlayOrigin.values()) System.out.println(c);
public static ScreenOverlayOrigin 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 int getValue()
getValue
in interface Enumeration
@Nonnull public static ScreenOverlayOrigin getFromValue(int value)
value
- a numeric value.@Nonnull public static ScreenOverlayOrigin getDefault()