public class WayPoint extends WithAttributes implements java.lang.Comparable<WayPoint>, TemplateEngineDataProvider
Modifier and Type | Field and Description |
---|---|
java.awt.Color |
customColoring |
int |
dir |
boolean |
drawLine |
private double |
east |
private double |
lat |
private double |
lon |
private double |
north |
double |
time
The seconds (not milliseconds!) since 1970-01-01 00:00 UTC
|
attr
FIX_VALUES, GPX_CMT, GPX_DESC, GPX_NAME, GPX_SRC, JOSM_EXTENSIONS_NAMESPACE_URI, META_AUTHOR_EMAIL, META_AUTHOR_LINK, META_AUTHOR_NAME, META_BOUNDS, META_COPYRIGHT_AUTHOR, META_COPYRIGHT_LICENSE, META_COPYRIGHT_YEAR, META_DESC, META_EXTENSIONS, META_KEYWORDS, META_LINKS, META_NAME, META_PREFIX, META_TIME, PT_AGEOFDGPSDATA, PT_DGPSID, PT_ELE, PT_FIX, PT_GEOIDHEIGHT, PT_HDOP, PT_MAGVAR, PT_PDOP, PT_SAT, PT_SYM, PT_TIME, PT_TYPE, PT_VDOP, RTE_TRK_KEYS, WPT_KEYS
Constructor and Description |
---|
WayPoint(LatLon ll) |
WayPoint(WayPoint p) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(WayPoint w) |
boolean |
equals(java.lang.Object obj) |
boolean |
evaluateCondition(SearchCompiler.Match condition) |
LatLon |
getCoor() |
EastNorth |
getEastNorth()
Replies the projected east/north coordinates.
|
java.util.List<java.lang.String> |
getTemplateKeys() |
java.lang.Object |
getTemplateValue(java.lang.String name,
boolean special) |
java.util.Date |
getTime() |
int |
hashCode() |
void |
invalidateEastNorthCache()
Invalidate the internal cache of east/north coordinates.
|
void |
setTime()
Convert the time stamp of the waypoint into seconds from the epoch
|
void |
setTime(java.util.Date time)
Sets the
time field as well as the GpxConstants.PT_TIME attribute to the specified time |
java.util.Date |
setTimeFromAttribute()
Convert the time stamp of the waypoint into seconds from the epoch
|
java.lang.String |
toString() |
addExtension, get, getCollection, getString, put
public double time
public java.awt.Color customColoring
public boolean drawLine
public int dir
private final double lat
private final double lon
private double east
private double north
public void invalidateEastNorthCache()
public final EastNorth getEastNorth()
Replies the projected east/north coordinates.
Uses the global projection
to project the lan/lon-coordinates.
Internally caches the projected coordinates.
Caveat: doesn't listen to projection changes. Clients must
invalidate the internal cache
.
null
invalidateEastNorthCache()
public java.lang.String toString()
toString
in class java.lang.Object
public void setTime(java.util.Date time)
time
field as well as the GpxConstants.PT_TIME
attribute to the specified timetime
- the time to setpublic void setTime()
public java.util.Date setTimeFromAttribute()
null
public int compareTo(WayPoint w)
compareTo
in interface java.lang.Comparable<WayPoint>
public java.util.Date getTime()
public java.lang.Object getTemplateValue(java.lang.String name, boolean special)
getTemplateValue
in interface TemplateEngineDataProvider
public boolean evaluateCondition(SearchCompiler.Match condition)
evaluateCondition
in interface TemplateEngineDataProvider
public java.util.List<java.lang.String> getTemplateKeys()
getTemplateKeys
in interface TemplateEngineDataProvider
public int hashCode()
hashCode
in class WithAttributes
public boolean equals(java.lang.Object obj)
equals
in class WithAttributes