Class PointImpl
- java.lang.Object
-
- com.priint.pubserver.metadata.xml.base.PointImpl
-
- All Implemented Interfaces:
Point,java.io.Serializable
public class PointImpl extends java.lang.Object implements java.io.Serializable, Point
The type Point.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PointImpl(double x, double y)Instantiates a new Point.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetX()Gets the X coordinate of this point.doublegetY()Gets the Y coordinate of this point.static PointImplparsePoint(java.lang.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.
-
-
-
Method Detail
-
parsePoint
public static PointImpl parsePoint(java.lang.String pair)
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.
-
-