public class WayPoint extends WithAttributes implements Comparable<WayPoint>, TemplateEngineDataProvider
Modifier and Type | Field and Description |
---|---|
Color |
customColoring |
private static ThreadLocal<PrimaryDateParser> |
dateParser |
int |
dir |
boolean |
drawLine |
private double |
east |
private double |
lat |
private double |
lon |
private double |
north |
double |
time |
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 |
evaluateCondition(SearchCompiler.Match condition) |
LatLon |
getCoor() |
EastNorth |
getEastNorth()
Replies the projected east/north coordinates.
|
List<String> |
getTemplateKeys() |
Object |
getTemplateValue(String name,
boolean special) |
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
|
String |
toString() |
addExtension, get, getCollection, getString, put
private static ThreadLocal<PrimaryDateParser> dateParser
public double time
public 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 void setTime()
public int compareTo(WayPoint w)
compareTo
in interface Comparable<WayPoint>
public Object getTemplateValue(String name, boolean special)
getTemplateValue
in interface TemplateEngineDataProvider
public boolean evaluateCondition(SearchCompiler.Match condition)
evaluateCondition
in interface TemplateEngineDataProvider
public List<String> getTemplateKeys()
getTemplateKeys
in interface TemplateEngineDataProvider