public class Point
extends java.lang.Object
Location
class defines a point specified in
double
precision.Modifier and Type | Field and Description |
---|---|
double |
x
The X coordinate of this
Location . |
double |
y
The Y coordinate of this
Location . |
Constructor and Description |
---|
Point()
Constructs and initializes a
Location with coordinates
(0, 0). |
Point(double x,
double y)
Constructs and initializes a
Location with the specified
coordinates. |
Point(Location lo) |
Modifier and Type | Method and Description |
---|---|
double |
getX()
Returns the X coordinate of this
Location in
double precision. |
double |
getY()
Returns the Y coordinate of this
Location in
double precision. |
void |
setLocation(double x,
double y)
Sets the location of this
Location to the specified
double coordinates. |
void |
setX(double x) |
void |
setY(double y) |
java.lang.String |
toString()
Returns a
String that represents the value of this
Location . |
void |
translate(double dTranslateX,
double dTranslateY) |
public double x
Location
.public double y
Location
.public Point()
Location
with coordinates
(0, 0).public Point(Location lo)
public Point(double x, double y)
Location
with the specified
coordinates.x, y
- the coordinates to which to set the newly constructed
Location
public double getX()
Location
in
double
precision.Location
.public double getY()
Location
in
double
precision.Location
.public void setLocation(double x, double y)
Location
to the specified
double
coordinates.x, y
- the coordinates to which to set this Location
public java.lang.String toString()
String
that represents the value of this
Location
.toString
in class java.lang.Object
Location
.public void setX(double x)
public void setY(double y)
public void translate(double dTranslateX, double dTranslateY)
Copyright © 2005-2008 Actuate Corp. All rights reserved.