Class Point
- java.lang.Object
-
- com.rometools.modules.georss.geometries.AbstractGeometry
-
- com.rometools.modules.georss.geometries.AbstractGeometricPrimitive
-
- com.rometools.modules.georss.geometries.Point
-
- All Implemented Interfaces:
Serializable,Cloneable
public final class Point extends AbstractGeometricPrimitive
Point object, contains a position- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Make a deep copy of the geometric objectbooleanequals(Object obj)PositiongetPosition()Get the positionvoidsetPosition(Position pos)Set the position
-
-
-
Constructor Detail
-
Point
public Point()
-
Point
public Point(Position pos)
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
Description copied from class:AbstractGeometryMake a deep copy of the geometric object- Overrides:
clonein classAbstractGeometry- Returns:
- A copy of the object
- Throws:
CloneNotSupportedException
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractGeometry
-
getPosition
public Position getPosition()
Get the position- Returns:
- the position
-
setPosition
public void setPosition(Position pos)
Set the position- Parameters:
pos- the new position
-
-