Class PointImpl
java.lang.Object
com.priint.pubserver.metadata.xml.base.PointImpl
- All Implemented Interfaces:
Point,Serializable
The type Point.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetX()Gets the X coordinate of this point.doublegetY()Gets the Y coordinate of this point.static PointImplparsePoint(String pair) parse point: example of point as String "1,1".voidsetX(double x) Sets the X coordinate of this point.voidsetY(double y) Sets the Y coordinate of this point.
-
Constructor Details
-
PointImpl
public PointImpl(double x, double y) Instantiates a new Point.- Parameters:
x- the xy- the y
-
-
Method Details
-
parsePoint
parse point: example of point as String "1,1". It accepts doubles.- Parameters:
pair-- Returns:
- PointImpl
-
getX
public double getX()Description copied from interface:PointGets the X coordinate of this point.
Gets the X coordinate of this point.
-
setX
public void setX(double x) Description copied from interface:PointSets the X coordinate of this point.
Sets the X coordinate of this point.
-
getY
public double getY()Description copied from interface:PointGets the Y coordinate of this point.
Gets the Y coordinate of this point.
-
setY
public void setY(double y) Description copied from interface:PointSets the Y coordinate of this point.
Sets the Y coordinate of this point.
-