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