Class Point
java.lang.Object
org.eclipse.birt.chart.computation.Point
The
Location
class defines a point specified in
double
precision.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getX()
Returns the X coordinate of thisLocation
indouble
precision.double
getY()
Returns the Y coordinate of thisLocation
indouble
precision.void
setLocation
(double x, double y) Sets the location of thisLocation
to the specifieddouble
coordinates.void
setX
(double x) void
setY
(double y) toString()
Returns aString
that represents the value of thisLocation
.void
translate
(double dTranslateX, double dTranslateY)
-
Field Details
-
x
public double xThe X coordinate of thisLocation
. -
y
public double yThe Y coordinate of thisLocation
.
-
-
Constructor Details
-
Point
public Point()Constructs and initializes aLocation
with coordinates (0, 0). -
Point
-
Point
public Point(double x, double y) Constructs and initializes aLocation
with the specified coordinates.- Parameters:
x
- , y the coordinates to which to set the newly constructedLocation
-
-
Method Details
-
getX
public double getX()Returns the X coordinate of thisLocation
indouble
precision.- Returns:
- the X coordinate of this
Location
.
-
getY
public double getY()Returns the Y coordinate of thisLocation
indouble
precision.- Returns:
- the Y coordinate of this
Location
.
-
setLocation
public void setLocation(double x, double y) Sets the location of thisLocation
to the specifieddouble
coordinates.- Parameters:
x
- , y the coordinates to which to set thisLocation
-
toString
Returns aString
that represents the value of thisLocation
. -
setX
public void setX(double x) -
setY
public void setY(double y) -
translate
public void translate(double dTranslateX, double dTranslateY)
-