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 TypeMethodDescriptiondoublegetX()Returns the X coordinate of thisLocationindoubleprecision.doublegetY()Returns the Y coordinate of thisLocationindoubleprecision.voidsetLocation(double x, double y) Sets the location of thisLocationto the specifieddoublecoordinates.voidsetX(double x) voidsetY(double y) toString()Returns aStringthat represents the value of thisLocation.voidtranslate(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 aLocationwith coordinates (0, 0). -
Point
-
Point
public Point(double x, double y) Constructs and initializes aLocationwith 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 thisLocationindoubleprecision.- Returns:
- the X coordinate of this
Location.
-
getY
public double getY()Returns the Y coordinate of thisLocationindoubleprecision.- Returns:
- the Y coordinate of this
Location.
-
setLocation
public void setLocation(double x, double y) Sets the location of thisLocationto the specifieddoublecoordinates.- Parameters:
x- , y the coordinates to which to set thisLocation
-
toString
Returns aStringthat 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)
-