public static class SoftSpot.WorkingArea
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SoftSpot.WorkingArea.RotationBehavior
RotationBehavior is an enumeration defining constants for different
ways the WorkingArea can behave when rotating the device. |
| Modifier and Type | Field and Description |
|---|---|
float |
bottom
Lower bound, proportional to the screen.
|
int |
bottomPixels
Lower bound, in pixels.
|
float |
left
Left bound, proportional to the screen.
|
int |
leftPixels
Left bound, in pixels.
|
float |
right
Right bound, proportional to the screen.
|
int |
rightPixels
Right bound, in pixels.
|
SoftSpot.WorkingArea.RotationBehavior |
rotationBehavior
Determines how the working area reacts to screen rotations.
|
float |
top
Upper bound, proportional to the screen.
|
int |
topPixels
Upper bound, in pixels
|
| Constructor and Description |
|---|
WorkingArea(float left,
float top,
float right,
float bottom)
Create a
WorkingArea specifying proportions on the screen. |
WorkingArea(int leftPixels,
int topPixels,
int rightPixels,
int bottomPixels)
Create a
WorkingArea specifying pixels values. |
WorkingArea(int leftPixels,
int topPixels,
int rightPixels,
int bottomPixels,
float left,
float top,
float right,
float bottom,
SoftSpot.WorkingArea.RotationBehavior rotationBehavior) |
| Modifier and Type | Method and Description |
|---|---|
float |
height()
Height of the
WorkingArea. |
float |
heightPixels()
Height of the
WorkingArea. |
float |
width()
Width of the
WorkingArea. |
float |
widthPixels()
Width of the
WorkingArea. |
public int leftPixels
public int topPixels
public int rightPixels
leftPixels.public int bottomPixels
topPixels.public float left
public float top
public float right
left.public float bottom
top.public SoftSpot.WorkingArea.RotationBehavior rotationBehavior
public WorkingArea(int leftPixels,
int topPixels,
int rightPixels,
int bottomPixels)
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.public WorkingArea(float left,
float top,
float right,
float bottom)
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.public WorkingArea(int leftPixels,
int topPixels,
int rightPixels,
int bottomPixels,
float left,
float top,
float right,
float bottom,
SoftSpot.WorkingArea.RotationBehavior rotationBehavior)
public float widthPixels()
WorkingArea.WorkingArea, in pixels.public float heightPixels()
WorkingArea.WorkingArea, in pixels.public float width()
WorkingArea.WorkingArea, relative to the screen.public float height()
WorkingArea.WorkingArea, relative to the screen.