java.lang.Object | |
↳ | com.datalogic.softspot.SoftSpot.WorkingArea |
Constraints defining the frame to restrict SoftSpot's movement. Constraints can be specified using pixel values or as proportions of the screen. For the latter, 0.0 refers to the far left/top, while 1.0 refers to the very bottom/right.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SoftSpot.WorkingArea.RotationBehavior | RotationBehavior is an enumeration defining constants for different
ways the WorkingArea can behave when rotating the device. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
bottom | Lower bound, proportional to the screen. | ||||||||||
bottomPixels | Lower bound, in pixels. | ||||||||||
left | Left bound, proportional to the screen. | ||||||||||
leftPixels | Left bound, in pixels. | ||||||||||
right | Right bound, proportional to the screen. | ||||||||||
rightPixels | Right bound, in pixels. | ||||||||||
rotationBehavior | Determines how the working area reacts to screen rotations. | ||||||||||
top | Upper bound, proportional to the screen. | ||||||||||
topPixels | Upper bound, in pixels |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a
WorkingArea specifying pixels values. | |||||||||||
Create a
WorkingArea specifying proportions on the screen. | |||||||||||
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Height of the
WorkingArea . | |||||||||||
Height of the
WorkingArea . | |||||||||||
Width of the
WorkingArea . | |||||||||||
Width of the
WorkingArea . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Lower bound, proportional to the screen. 0 = far top, 1 = far bottom. Must be >= top
.
Left bound, proportional to the screen. 0 = far left, 1 = far right.
Right bound, proportional to the screen. 0 = far left, 1 = far right. Must be >= left
.
Determines how the working area reacts to screen rotations.
Upper bound, proportional to the screen. 0 = far top, 1 = far bottom.
Create a WorkingArea
specifying pixels values.
leftPixels | Left bound, in pixels. |
---|---|
topPixels | Upper bound, in pixels. |
rightPixels | Right bound, in pixels. Must be >= leftPixels . |
bottomPixels | Lower bound, in pixels. Must be >= topPixels .
|
Create a WorkingArea
specifying proportions on the screen.
left | Left bound, proportional to the screen. 0 = far left, 1 = far right. |
---|---|
top | Upper bound, proportional to the screen. 0 = far top, 1 = far bottom. |
right | Right bound, proportional to the screen. 0 = far left, 1 = far right. Must be >= left . |
bottom | Lower bound, proportional to the screen. 0 = far top, 1 = far bottom. Must be >= top .
|
Height of the WorkingArea
.
WorkingArea
, relative to the screen.
Height of the WorkingArea
.
WorkingArea
, in pixels.
Width of the WorkingArea
.
WorkingArea
, relative to the screen.
Width of the WorkingArea
.
WorkingArea
, in pixels.