public class HScreenPoint extends Object
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| Constructor and Description |
|---|
HScreenPoint(float x,
float y)
Creates an
HScreenPoint
object. |
public HScreenPoint(float x,
float y)
HScreenPoint
object. See the class description for details of constructor
parameters and default values.Copyright © 2012 code4tv.com. All Rights Reserved.