public static final enum

SoftSpot.WorkingArea.RotationBehavior

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.softspot.SoftSpot.WorkingArea.RotationBehavior

Class Overview

RotationBehavior is an enumeration defining constants for different ways the WorkingArea can behave when rotating the device.

Summary

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
static SoftSpot.WorkingArea.RotationBehavior valueOf(String name)
final static RotationBehavior[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final SoftSpot.WorkingArea.RotationBehavior HOLD_IN_PLACE

Added in revision 15

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.

public static final SoftSpot.WorkingArea.RotationBehavior MAINTAIN_PROPORTIONS

Added in revision 15

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 right of 1.0, then the area will 400px wide. Rotating the device 90 degrees will make the area 800 px now.

Public Methods

public static SoftSpot.WorkingArea.RotationBehavior valueOf (String name)

Added in revision 15

public static final RotationBehavior[] values ()

Added in revision 15