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 |
attr
JOSM_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.
|
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, put
private 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
.
null
invalidateEastNorthCache()
public java.lang.String toString()
toString
in class java.lang.Object
public 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 TemplateEngineDataProvider
public boolean evaluateCondition(SearchCompiler.Match condition)
evaluateCondition
in interface TemplateEngineDataProvider
public java.util.List<java.lang.String> getTemplateKeys()
getTemplateKeys
in interface TemplateEngineDataProvider