public class GpxTrackSegment extends WithAttributes implements IGpxTrackSegment
GpxConstants.ColorFormat| Modifier and Type | Field and Description |
|---|---|
private Bounds |
bounds |
private double |
length |
private java.util.List<WayPoint> |
wayPoints |
attrEXTENSION_ABBREVIATIONS, FIX_VALUES, GARMIN_COLORS, GPX_CMT, GPX_DESC, GPX_NAME, GPX_PREFIX, GPX_SRC, META_AUTHOR_EMAIL, META_AUTHOR_LINK, META_AUTHOR_NAME, META_BOUNDS, META_COPYRIGHT_AUTHOR, META_COPYRIGHT_LICENSE, META_COPYRIGHT_YEAR, META_DESC, 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, RTKLIB_AGE, RTKLIB_Q, RTKLIB_RATIO, RTKLIB_SDE, RTKLIB_SDEU, RTKLIB_SDN, RTKLIB_SDNE, RTKLIB_SDU, RTKLIB_SDUN, WPT_KEYS, XML_URI_EXTENSIONS_DRAWING, XML_URI_EXTENSIONS_GARMIN, XML_URI_EXTENSIONS_JOSM, XML_URI_XSD, XML_XSD_EXTENSIONS_DRAWING, XML_XSD_EXTENSIONS_GARMIN, XML_XSD_EXTENSIONS_JOSM| Constructor and Description |
|---|
GpxTrackSegment(java.util.Collection<WayPoint> wayPoints)
Constructs a new
GpxTrackSegment. |
| Modifier and Type | Method and Description |
|---|---|
private Bounds |
calculateBounds() |
private double |
calculateLength() |
boolean |
equals(java.lang.Object obj) |
Bounds |
getBounds()
Returns the segment bounds.
|
int |
getUpdateCount()
Returns the number of times this track has been changed
|
java.util.Collection<WayPoint> |
getWayPoints()
Returns the segment waypoints.
|
int |
hashCode() |
double |
length()
Returns the segment length.
|
get, getAttributes, getCollection, getExtensions, getString, putclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitget, getAttributes, getCollection, getExtensions, getString, putgetExtensionAbbreviations, getGarminColorsprivate final double length
public GpxTrackSegment(java.util.Collection<WayPoint> wayPoints)
GpxTrackSegment.wayPoints - list of waypointsprivate Bounds calculateBounds()
private double calculateLength()
public Bounds getBounds()
IGpxTrackSegmentgetBounds in interface IGpxTrackSegmentpublic java.util.Collection<WayPoint> getWayPoints()
IGpxTrackSegmentgetWayPoints in interface IGpxTrackSegmentpublic double length()
IGpxTrackSegmentlength in interface IGpxTrackSegmentpublic int getUpdateCount()
IGpxTrackSegmentgetUpdateCount in interface IGpxTrackSegmentpublic int hashCode()
hashCode in class WithAttributespublic boolean equals(java.lang.Object obj)
equals in class WithAttributes