public static enum SoftSpot.WorkingArea.RotationBehavior extends java.lang.Enum<SoftSpot.WorkingArea.RotationBehavior>
RotationBehavior is an enumeration defining constants for different
ways the WorkingArea can behave when rotating the device.| Enum Constant and Description |
|---|
HOLD_IN_PLACE
The area will be reevaluated to appear to stay in place.
|
MAINTAIN_PROPORTIONS
The size of each side proportional to the screen stays the same.
|
| Modifier and Type | Method and Description |
|---|---|
static SoftSpot.WorkingArea.RotationBehavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SoftSpot.WorkingArea.RotationBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoftSpot.WorkingArea.RotationBehavior HOLD_IN_PLACE
WorkingArea is set with a topPixels of 50px,
rotating the device counterclockwise will result in the area starting 50px from the new left,
because that was the old top.public static final SoftSpot.WorkingArea.RotationBehavior MAINTAIN_PROPORTIONS
WorkingArea is set with a
left of 0.2 and a public static SoftSpot.WorkingArea.RotationBehavior[] values()
for (SoftSpot.WorkingArea.RotationBehavior c : SoftSpot.WorkingArea.RotationBehavior.values()) System.out.println(c);
public static SoftSpot.WorkingArea.RotationBehavior 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 null