|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ValueConstruct
com.google.gdata.data.geo.impl.PointConstruct
public abstract class PointConstruct
A basic point construct consists of a space-separated coordinate in geo space. The namespace and name of the element are supplied by subclasses.
| Constructor Summary | |
|---|---|
PointConstruct(XmlNamespace namespace,
java.lang.String name)
Constructor to create an empty point object. |
|
PointConstruct(XmlNamespace namespace,
java.lang.String name,
java.lang.Double lat,
java.lang.Double lon)
Constructor to create a point from a given lat/lon pair. |
|
PointConstruct(XmlNamespace namespace,
java.lang.String name,
Point copyFrom)
Copy constructor to create a point from another point. |
|
| Method Summary | |
|---|---|
java.lang.Double |
getLatitude()
|
java.lang.Double |
getLongitude()
|
void |
setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
Sets the latitude and longitude coordinates of this Point. |
void |
setValue(java.lang.String v)
Sets the value. |
java.lang.String |
toString()
|
| Methods inherited from class com.google.gdata.data.ValueConstruct |
|---|
equals, generate, getHandler, getValue, hashCode, hasValue, isRequired, putAttributes |
| Methods inherited from class com.google.gdata.data.AbstractExtension |
|---|
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gdata.data.Extension |
|---|
generate, getHandler |
| Constructor Detail |
|---|
public PointConstruct(XmlNamespace namespace,
java.lang.String name)
public PointConstruct(XmlNamespace namespace,
java.lang.String name,
java.lang.Double lat,
java.lang.Double lon)
public PointConstruct(XmlNamespace namespace,
java.lang.String name,
Point copyFrom)
| Method Detail |
|---|
public java.lang.Double getLatitude()
getLatitude in interface Pointpublic java.lang.Double getLongitude()
getLongitude in interface Point
public void setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
Point
setGeoLocation in interface Pointlat - The latitude in degrees, from -90 to 90.lon - The longitude in degrees, from -180 to 180.public java.lang.String toString()
toString in class java.lang.Objectpublic void setValue(java.lang.String v)
ValueConstruct
setValue in class ValueConstructv - new value for the value construct or null to reset.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||