|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.havi.ui.HScreenPoint
public class HScreenPoint
HScreenPoint
denotes a screen
location expressed as a relative value of the screen
dimensions. Note that since these are relative dimensions they are
effectively independent of any particular screen's physical
dimensions, or aspect ratio.
The x coordinate is in terms of the ratio of the particular horizontal screen location to the entire screen width.
The y coordinate is in terms of the ratio of the particular vertical screen location to the entire screen width.
All measurements should be taken from the top, left corner of the screen, measuring positive dimensions down and to the right.
Note that x and y coordinates are not constrained - they may be negative, or have values greater than one - and hence, may denote locations that are not "on- screen".
Hence,
Parameter | Description | Default value | Set method | Get method |
---|---|---|---|---|
x | The horizontal position of the point | no default constructor exists | setLocation |
--- |
y | The vertical position of the point | no default constructor exists | setLocation |
--- |
Description | Default value | Set method | Get method |
---|---|---|---|
None. |
HScreenRectangle
Field Summary | |
---|---|
float |
x
|
float |
y
|
Constructor Summary | |
---|---|
HScreenPoint(float x,
float y)
Creates an HScreenPoint
object. |
Method Summary | |
---|---|
void |
setLocation(float x,
float y)
Set the location of the HScreenPoint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float x
public float y
Constructor Detail |
---|
public HScreenPoint(float x, float y)
HScreenPoint
object. See the class description for details of constructor
parameters and default values.
Method Detail |
---|
public void setLocation(float x, float y)
x
- the horizontal position of the pointy
- the vertical position of the point
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |