Class Point
- java.lang.Object
-
- org.eclipse.birt.chart.computation.Point
-
public class Point extends java.lang.ObjectTheLocationclass defines a point specified indoubleprecision.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetX()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)java.lang.StringtoString()Returns aStringthat represents the value of thisLocation.voidtranslate(double dTranslateX, double dTranslateY)
-
-
-
Constructor Detail
-
Point
public Point()
Constructs and initializes aLocationwith coordinates (0, 0).
-
Point
public Point(Location lo)
-
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 Detail
-
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
public java.lang.String toString()
Returns aStringthat represents the value of thisLocation.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of this
Location.
-
setX
public void setX(double x)
-
setY
public void setY(double y)
-
translate
public void translate(double dTranslateX, double dTranslateY)
-
-