|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectus.zuercher.gpx2map.data.AbstractGpxEntity
us.zuercher.gpx2map.data.WayPoint
public class WayPoint
WayPoint represents a GPX way-point. WayPoints form the basis of both
TrackPoint and RoutePoint objects.
WayPoint supports the following properties:
| Name | Type |
|---|---|
| name | string |
| cmt | string |
| desc | string |
| src | string |
| sym | string |
| type | string |
| fix | string |
| ele | decimal |
| magvar | decimal |
| geoidheight | decimal |
| hdop | decimal |
| vdop | decimal |
| pdop | decimal |
| ageofdpsdata | decimal |
| sat | integer |
| dgpsid | integer |
| time | date/time |
| Field Summary | |
|---|---|
protected static Set<String> |
dateTimePropertyNames
Way-point string date/time names. |
protected static Set<String> |
decimalPropertyNames
Way-point decimal property names. |
protected static Set<String> |
integerPropertyNames
Way-point string integer names. |
private LatLon |
location
Way-point coordinate. |
protected static Set<String> |
stringPropertyNames
Way-point string property names. |
| Fields inherited from class us.zuercher.gpx2map.data.AbstractGpxEntity |
|---|
dateFormatter |
| Constructor Summary | |
|---|---|
WayPoint(LatLon location)
Construct a new WayPoint with the given coordinate. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Tests this WayPoint against another for equality. |
boolean |
equals(WayPoint other)
Tests this WayPoint against another for equality. |
Set<String> |
getDateTimePropertyNames()
Returns the date/timeproperty names
for a WayPoint. |
Set<String> |
getDecimalPropertyNames()
Returns the decimal property names for a
WayPoint. |
Set<String> |
getIntegerPropertyNames()
Returns the integer property names for a
WayPoint. |
LatLon |
getLocation()
Returns the WayPoint's coordinates. |
Set<String> |
getStringPropertyNames()
Returns the string property names for a
WayPoint. |
String |
getType()
Returns the WayPoints's type. |
int |
hashCode()
Computes a reasonable hash code for this WayPoint. |
String |
toExtendedString()
Returns a complex representation of this way-point, including all properties. |
String |
toString()
Returns a simple string representation of this way-point. |
| Methods inherited from class us.zuercher.gpx2map.data.AbstractGpxEntity |
|---|
equals, getDateTimeProperty, getDecimalProperty, getIntegerProperty, getStringProperty, setDateTimeProperty, setDecimalProperty, setIntegerProperty, setStringProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final Set<String> stringPropertyNames
protected static final Set<String> decimalPropertyNames
protected static final Set<String> integerPropertyNames
protected static final Set<String> dateTimePropertyNames
private final LatLon location
| Constructor Detail |
|---|
public WayPoint(LatLon location)
location - | Method Detail |
|---|
public Set<String> getStringPropertyNames()
string property names for a
WayPoint.
getStringPropertyNames in class AbstractGpxEntitystring property names for a
WayPoint.public Set<String> getDecimalPropertyNames()
decimal property names for a
WayPoint.
getDecimalPropertyNames in class AbstractGpxEntitydecimal property names for a
WayPoint.public Set<String> getIntegerPropertyNames()
integer property names for a
WayPoint.
getIntegerPropertyNames in class AbstractGpxEntityinteger property names for a
WayPoint.public Set<String> getDateTimePropertyNames()
date/timeproperty names
for a WayPoint.
getDateTimePropertyNames in class AbstractGpxEntitydate/time property names
for a WayPoint.public LatLon getLocation()
public String getType()
public String toString()
toString in class AbstractGpxEntitypublic String toExtendedString()
public boolean equals(WayPoint other)
other - another WayPoint
public boolean equals(Object other)
equals in class AbstractGpxEntityother - another WayPoint
ClassCastException - if other is not a
WayPoint.public int hashCode()
hashCode in class AbstractGpxEntity
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||