|
||||||||||
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 de.monarchy.guideme.pois.wikipedia.WikipediaArticle
public class WikipediaArticle
WikipediaArticle is a special class to maintain information about points of interest gathered from wikipedia.
Field Summary |
---|
Fields inherited from class de.monarchy.guideme.util.GeoCoordinate |
---|
DEG_TO_RAD, EARTH_RADIUS, RAD_TO_DEG |
Constructor Summary | |
---|---|
WikipediaArticle(double lat,
double lon,
java.lang.String descr,
java.net.URL url)
Creates a POI for wikipedia articles. |
|
WikipediaArticle(double lat,
double lon,
java.lang.String descr,
java.net.URL url,
java.lang.String text)
Creates a POI for wikipedia articles. |
|
WikipediaArticle(GeoCoordinate gc,
java.lang.String descr,
java.net.URL url)
Creates a POI for wikipedia articles. |
|
WikipediaArticle(GeoCoordinate gc,
java.lang.String descr,
java.net.URL url,
java.lang.String text)
Creates a POI for wikipedia articles. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getContent()
Returns the content of this article. |
java.net.URL |
getUrl()
Returns the full URL of this article. |
View |
getView(Context c)
A general PointOfInterest has no specified view. |
int |
hashCode()
|
void |
setContent(java.lang.String text)
Sets the content of this article to the given String. |
Methods inherited from class de.monarchy.guideme.util.PointOfInterest |
---|
getDescription, getLocation |
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 |
---|
getDescription, getLatitude, getLocation, getLongitude |
Constructor Detail |
---|
public WikipediaArticle(double lat, double lon, java.lang.String descr, java.net.URL url)
lat
- latitude of the POIlon
- longitude of the POIdescr
- name of the articleurl
- article urlpublic WikipediaArticle(GeoCoordinate gc, java.lang.String descr, java.net.URL url)
gc
- coordinate of the POIdescr
- name of the articleurl
- article urlpublic WikipediaArticle(double lat, double lon, java.lang.String descr, java.net.URL url, java.lang.String text)
lat
- latitude of the POIlon
- longitude of the POIdescr
- name of the articleurl
- article urltext
- short additional information about the POIpublic WikipediaArticle(GeoCoordinate gc, java.lang.String descr, java.net.URL url, java.lang.String text)
gc
- coordinate of the POIdescr
- name of the articleurl
- article urltext
- short additional information about the POIMethod Detail |
---|
public void setContent(java.lang.String text)
text
- new contentpublic java.lang.String getContent()
public java.net.URL getUrl()
getUrl
in interface WebPOI
public boolean equals(java.lang.Object o)
equals
in class PointOfInterest
public int hashCode()
hashCode
in class PointOfInterest
public View getView(Context c)
PointOfInterest
getView
in interface POI
getView
in class PointOfInterest
c
- context for the view
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |