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 |
attrJOSM_EXTENSIONS_NAMESPACE_URI, META_AUTHOR_EMAIL, META_AUTHOR_LINK, META_AUTHOR_NAME, META_COPYRIGHT_AUTHOR, META_COPYRIGHT_LICENSE, META_COPYRIGHT_YEAR, META_DESC, META_EXTENSIONS, META_KEYWORDS, META_LINKS, META_NAME, META_PREFIX, META_TIME, 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, putprivate 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.
nullinvalidateEastNorthCache()public void setTime()
public int compareTo(WayPoint w)
compareTo in interface Comparable<WayPoint>public Object getTemplateValue(String name, boolean special)
getTemplateValue in interface TemplateEngineDataProviderpublic boolean evaluateCondition(SearchCompiler.Match condition)
evaluateCondition in interface TemplateEngineDataProviderpublic List<String> getTemplateKeys()
getTemplateKeys in interface TemplateEngineDataProvider