java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | com.datalogic.softspot.SoftSpot.WorkingArea.RotationBehavior |
RotationBehavior
is an enumeration defining constants for different
ways the WorkingArea
can behave when rotating the device.
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SoftSpot.WorkingArea.RotationBehavior | HOLD_IN_PLACE | The area will be reevaluated to appear to stay in place. | |||||||||
SoftSpot.WorkingArea.RotationBehavior | MAINTAIN_PROPORTIONS | The size of each side proportional to the screen stays the same. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|
The area will be reevaluated to appear to stay in place. This is the default.
For example, if the 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.
The size of each side proportional to the screen stays the same.
For example, if your screen has dimensions 500x1000 px. If your WorkingArea
is set with a
left
of 0.2 and a