| java.lang.Object | |||
| ↳ | com.google.gdata.data.AbstractExtension | ||
| ↳ | com.google.gdata.data.ValueConstruct | ||
| ↳ | com.google.gdata.data.geo.impl.PointConstruct | ||
Known Direct Subclasses
|
A basic point construct consists of a space-separated coordinate in geo space. The namespace and name of the element are supplied by subclasses.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| lat | |||||||||||
| lon | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.data.ValueConstruct
| |||||||||||
From class
com.google.gdata.data.AbstractExtension
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructor to create an empty point object.
| |||||||||||
Constructor to create a point from a given lat/lon pair.
| |||||||||||
Copy constructor to create a point from another point.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the latitude and longitude coordinates of this Point.
| |||||||||||
Sets the value.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Checks the attributes to see if there are any problems.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.data.ValueConstruct
| |||||||||||
From class
com.google.gdata.data.AbstractExtension
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.data.Extension
| |||||||||||
From interface
com.google.gdata.data.geo.Point
| |||||||||||
Constructor to create an empty point object.
| namespace | |
|---|---|
| name |
Constructor to create a point from a given lat/lon pair. Will create an empy point if both values are null, if only one value is null with throw an illegal argument exception.
| namespace | |
|---|---|
| name | |
| lat | |
| lon |
Copy constructor to create a point from another point.
| namespace | |
|---|---|
| name | |
| copyFrom |
Sets the latitude and longitude coordinates of this Point. Either both lat and lon must be non-null, or both must be null. Implementations will throw an IllegalArgumentException if only one is null and one is not. They will also throw an IllegalArgumentException if either of the lat values is outside the valid range.
| lat | The latitude in degrees, from -90 to 90. |
|---|---|
| lon | The longitude in degrees, from -180 to 180. |
Sets the value. Subclasses can override this method to do additional validation of the value.
| v | New value for the value construct or null to reset. |
|---|
Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.
| IllegalStateException |
|---|