|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.monarchy.guideme.util.GeoCoordinate de.monarchy.guideme.util.PointOfInterest
public class PointOfInterest
Specifies a location with a special name. The class PointOfInterest will be superclass of all points of interest, as its name says. The class itself can already be used as a simple location.
Field Summary |
---|
Fields inherited from class de.monarchy.guideme.util.GeoCoordinate |
---|
DEG_TO_RAD, EARTH_RADIUS, RAD_TO_DEG |
Constructor Summary | |
---|---|
PointOfInterest(double lat,
double lon,
java.lang.String descr)
Instanciates a PointOfInterest at the given location with the specified name. |
|
PointOfInterest(GeoCoordinate g,
java.lang.String descr)
Instanciates a PointOfInterest at the given location with the specified name. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDescription()
Returns a description of the location in a String. |
GeoCoordinate |
getLocation()
Returns the location as GeoCoordinate. |
View |
getView(Context c)
A general PointOfInterest has no specified view. |
int |
hashCode()
|
Methods inherited from class de.monarchy.guideme.util.GeoCoordinate |
---|
distanceTo, getLatitude, getLongitude, setLatitude, setLongitude, toString, trackAngle |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.monarchy.guideme.util.POI |
---|
getLatitude, getLongitude |
Constructor Detail |
---|
public PointOfInterest(double lat, double lon, java.lang.String descr)
lat
- latitude of the POIlon
- longitude of the POIdescr
- short descriptionpublic PointOfInterest(GeoCoordinate g, java.lang.String descr)
g
- location of the POIdescr
- short descriptionMethod Detail |
---|
public java.lang.String getDescription()
POI
getDescription
in interface POI
public GeoCoordinate getLocation()
getLocation
in interface POI
public View getView(Context c)
getView
in interface POI
c
- context for the view
public boolean equals(java.lang.Object o)
equals
in class GeoCoordinate
public int hashCode()
hashCode
in class GeoCoordinate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |