| java.lang.Object | |
| ↳ | com.google.gdata.data.geo.impl.PointDataImpl |
Implementation of the PointData interface. Currently only supports
a non-repeating Point extension. This class uses an ExtensionPoint
that is passed in to store the Point extension.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| extPoint | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new implementation of PointData with the given
extension point as the backing storage for data.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Clears the point data and removes the extension point.
| |||||||||||
Removes the first Point extension found on the extension point.
| |||||||||||
Gets the geo-location of the entity.
| |||||||||||
Helper method to retrieve the Box extension point.
| |||||||||||
Sets the geo-location of the entity based on the lat and long coordinates
passed in.
| |||||||||||
Sets the geo-location of the entity based on the Point extension.
| |||||||||||
Sets the geo point of the extension passed in.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.data.geo.PointData
| |||||||||||
Construct a new implementation of PointData with the given extension point as the backing storage for data.
| extensionPoint |
|---|
Clears the point data and removes the extension point.
Removes the first Point extension found on the extension point. If the point extension is a GeoRssWhere, it will only remove the GeoRssWhere extension if it does not contain a Box/Envelope extension.
| ext | The extension point from which to clear the Box extension. |
|---|
Gets the geo-location of the entity.
Helper method to retrieve the Box extension point.
| ext | The containing extension point. |
|---|
Sets the geo-location of the entity based on the lat and long coordinates passed in.
| lat | The latitude coordinate, between -90 and 90 degrees. |
|---|---|
| lon | The longitude coordinate, between -180 and 180 degrees. |
| IllegalArgumentException | if the latitude and longitude coordinates are invalid. |
|---|
Sets the geo-location of the entity based on the Point extension.
| point | A point containing the latitude and longitude coordinates. |
|---|
Sets the geo point of the extension passed in. This will first try to replace any existing point information. If there is no existing point, then it will simply add the point extension.
| ext | The extension point to add the Point to. |
|---|---|
| point | The new point information. |