public class PointDataImpl extends java.lang.Object implements PointData
ExtensionPoint
that is passed in to store the Point extension.| Constructor and Description |
|---|
PointDataImpl(ExtensionPoint extensionPoint)
Construct a new implementation of PointData with the given
extension point as the backing storage for data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearPoint()
Clears the point data and removes the extension point.
|
static void |
clearPoint(ExtensionPoint ext)
Removes the first Point extension found on the extension point.
|
void |
declareExtensions(ExtensionProfile extProfile) |
Point |
getGeoLocation()
Gets the geo-location of the entity.
|
static Point |
getPoint(ExtensionPoint ext)
Helper method to retrieve the Box extension point.
|
void |
setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
Sets the geo-location of the entity based on the lat and long coordinates
passed in.
|
void |
setGeoLocation(Point point)
Sets the geo-location of the entity based on the Point extension.
|
static void |
setPoint(ExtensionPoint ext,
Point point)
Sets the geo point of the extension passed in.
|
public PointDataImpl(ExtensionPoint extensionPoint)
public void setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
throws java.lang.IllegalArgumentException
setGeoLocation in interface PointDatalat - The latitude coordinate, between -90 and 90 degrees.lon - The longitude coordinate, between -180 and 180 degrees.java.lang.IllegalArgumentException - if the latitude and longitude coordinates
are invalid.public void setGeoLocation(Point point)
setGeoLocation in interface PointDatapoint - A point containing the latitude and longitude coordinates.public Point getGeoLocation()
getGeoLocation in interface PointDatapublic void clearPoint()
PointDataclearPoint in interface PointDatapublic void declareExtensions(ExtensionProfile extProfile)
public static void setPoint(ExtensionPoint ext, Point point)
ext - The extension point to add the Point to.point - The new point information.public static Point getPoint(ExtensionPoint ext)
ext - The containing extension point.public static void clearPoint(ExtensionPoint ext)
ext - The extension point from which to clear the Box extension.