geo.google.datamodel
Class GeoAltitude

java.lang.Object
  extended by geo.google.datamodel.GeoAltitude
All Implemented Interfaces:
Serializable, Cloneable

public class GeoAltitude
extends Object
implements Serializable, Cloneable

Altitude class.

Author:
jliang
See Also:
Serialized Form

Nested Class Summary
static class GeoAltitude.GeoAltitudeMode
           
 
Constructor Summary
GeoAltitude()
           
GeoAltitude(double altitude)
           
GeoAltitude(double altitude, GeoAltitude.GeoAltitudeMode mode)
           
 
Method Summary
 GeoAltitude clone()
           
 boolean equals(Object o)
           
 double getAltitude()
          Meters above sea level.
 GeoAltitude.GeoAltitudeMode getMode()
          Specifies how altitude components in the element are interpreted.
 int hashCode()
           
 void setAltitude(double altitude)
           
 void setMode(GeoAltitude.GeoAltitudeMode mode)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoAltitude

public GeoAltitude()

GeoAltitude

public GeoAltitude(double altitude)

GeoAltitude

public GeoAltitude(double altitude,
                   GeoAltitude.GeoAltitudeMode mode)
Method Detail

getAltitude

public double getAltitude()
Meters above sea level.

Returns:

setAltitude

public void setAltitude(double altitude)

getMode

public GeoAltitude.GeoAltitudeMode getMode()
Specifies how altitude components in the element are interpreted. Possible values are clampToGround - (default) Indicates to ignore an altitude specification (for example, in the tag). relativeToGround - Sets the altitude of the element relative to the actual ground elevation of a particular location. For example, if the ground elevation of a location is exactly at sea level and the altitude for a point is set to 9 meters, then the elevation for the icon of a point placemark elevation is 9 meters with this mode. However, if the same coordinate is set over a location where the ground elevation is 10 meters above sea level, then the elevation of the coordinate is 19 meters. A typical use of this mode is for placing telephone poles or a ski lift. absolute - Sets the altitude of the coordinate relative to sea level, regardless of the actual elevation of the terrain beneath the element. For example, if you set the altitude of a coordinate to 10 meters with an absolute altitude mode, the icon of a point placemark will appear to be at ground level if the terrain beneath is also 10 meters above sea level. If the terrain is 3 meters above sea level, the placemark will appear elevated above the terrain by 7 meters. A typical use of this mode is for aircraft placement. GeoAltitude.GeoAltitudeMode

Returns:

setMode

public void setMode(GeoAltitude.GeoAltitudeMode mode)

clone

public GeoAltitude clone()
Overrides:
clone in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008. All Rights Reserved.