public class WayPoint extends WithAttributes implements java.lang.Comparable<WayPoint>, TemplateEngineDataProvider
| Modifier and Type | Field and Description |
|---|---|
java.awt.Color |
customColoring |
private static java.lang.ThreadLocal<PrimaryDateParser> |
dateParser |
int |
dir |
boolean |
drawLine |
private double |
east |
private double |
lat |
private double |
lon |
private double |
north |
double |
time |
attrFIX_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 |
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() |
void |
invalidateEastNorthCache()
Invalidate the internal cache of east/north coordinates.
|
void |
setTime()
Convert the time stamp of the waypoint into seconds from the epoch
|
java.lang.String |
toString() |
addExtension, get, getCollection, getString, putprivate static java.lang.ThreadLocal<PrimaryDateParser> dateParser
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.
nullinvalidateEastNorthCache()public java.lang.String toString()
toString in class java.lang.Objectpublic void setTime()
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 TemplateEngineDataProviderpublic boolean evaluateCondition(SearchCompiler.Match condition)
evaluateCondition in interface TemplateEngineDataProviderpublic java.util.List<java.lang.String> getTemplateKeys()
getTemplateKeys in interface TemplateEngineDataProvider