|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Pix
The Pix class is my own implementation of java.awt.geom.Point2D.Double.
I had to make it because the Point2D.Double exists since JDK1.2 and I wanted my app to run
under the JDK1.1.x browsers (IE5,NS4).
It defines a point representing a location in (x, y) coordinate space. The storage
representation of both values is double
Point2D| Field Summary | |
double |
x
The X coordinate of this Pix. |
double |
y
The Y coordinate of this Pix. |
| Constructor Summary | |
Pix()
Constructs and initializes a Pix with
coordinates (0, 0). |
|
Pix(double ix,
double iy)
Constructs and initializes a Pix with the
specified coordinates. |
|
| Method Summary | |
double |
getX()
Returns the X coordinate of this Pix
in double precision. |
double |
getY()
Returns the Y coordinate of this Pix in
double precision. |
void |
setLocation(double ix,
double iy)
Sets the location of this Pix to the
specified double coordinates. |
java.lang.String |
toString()
Returns a String that represents the value
of this Pix. |
java.lang.String |
toString(int precision)
Returns a String that represents the value
of this Pix. |
java.lang.String |
toString(int xprecision,
int yprecision)
Returns a String that represents the value
of this Pix. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public double x
Pix.public double y
Pix.| Constructor Detail |
public Pix()
Pix with
coordinates (0, 0).
public Pix(double ix,
double iy)
Pix with the
specified coordinates.x, y - the coordinates to which to set the newly
constructed Pix
coordinates (0, 0).| Method Detail |
public double getX()
Pix
in double precision.Pix.public double getY()
Pix in
double precision.Pix.
public void setLocation(double ix,
double iy)
Pix to the
specified double coordinates.x, y - the coordinates to which to set this
Pix
public java.lang.String toString(int xprecision,
int yprecision)
String that represents the value
of this Pix. Real x,y values are multiplied by given coeficients.xprecision, yprecision - x y multiplification coeficientsPix.public java.lang.String toString(int precision)
String that represents the value
of this Pix. Both x,y values are multiplied by the same coeficient.precision - common multiplification coeficientPix.public java.lang.String toString()
String that represents the value
of this Pix.toString in class java.lang.ObjectPix.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||