public class Point
extends java.lang.Object
Location class defines a point specified in
double precision.| 限定符和类型 | 字段和说明 |
|---|---|
double |
x
The X coordinate of this
Location. |
double |
y
The Y coordinate of this
Location. |
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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
Locationpublic 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 Locationpublic java.lang.String toString()
String that represents the value of this
Location.toString 在类中 java.lang.ObjectLocation.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.