Package org.openstreetmap.josm.data.gpx
Class ImmutableGpxTrack
- java.lang.Object
-
- org.openstreetmap.josm.data.gpx.WithAttributes
-
- org.openstreetmap.josm.data.gpx.GpxTrack
-
- org.openstreetmap.josm.data.gpx.ImmutableGpxTrack
-
- All Implemented Interfaces:
GpxConstants
,IGpxTrack
,IWithAttributes
@Deprecated public class ImmutableGpxTrack extends GpxTrack
Deprecated.UseGpxTrack
instead!GPX track, NOT immutable- Since:
- 2907
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.data.gpx.GpxConstants
GpxConstants.ColorFormat
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.data.gpx.IGpxTrack
IGpxTrack.GpxTrackChangeEvent, IGpxTrack.GpxTrackChangeListener
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.data.gpx.WithAttributes
attr
-
Fields inherited from interface org.openstreetmap.josm.data.gpx.GpxConstants
EXTENSION_ABBREVIATIONS, FIX_VALUES, GARMIN_COLORS, GPX_CMT, GPX_DESC, GPX_NAME, GPX_PREFIX, GPX_SRC, JOSM_CREATOR_NAME, 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 Summary
Constructors Constructor Description ImmutableGpxTrack(Collection<Collection<WayPoint>> trackSegs, Map<String,Object> attributes)
Deprecated.Constructs a newImmutableGpxTrack
.ImmutableGpxTrack(List<IGpxTrackSegment> segments, Map<String,Object> attributes)
Deprecated.Constructs a newImmutableGpxTrack
fromGpxTrackSegment
objects.
-
Method Summary
-
Methods inherited from class org.openstreetmap.josm.data.gpx.GpxTrack
addListener, convertColor, equals, getBounds, getColor, getSegments, hashCode, invalidate, length, put, removeListener, setColor
-
Methods inherited from class org.openstreetmap.josm.data.gpx.WithAttributes
get, getAttributes, getCollection, getExtensions, getString, hasExtensions
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.data.gpx.IWithAttributes
get, getAttributes, getCollection, getExtensions, getString, hasExtensions
-
-
-
-
Constructor Detail
-
ImmutableGpxTrack
public ImmutableGpxTrack(Collection<Collection<WayPoint>> trackSegs, Map<String,Object> attributes)
Deprecated.Constructs a newImmutableGpxTrack
.- Parameters:
trackSegs
- track segmentsattributes
- track attributes
-
ImmutableGpxTrack
public ImmutableGpxTrack(List<IGpxTrackSegment> segments, Map<String,Object> attributes)
Deprecated.Constructs a newImmutableGpxTrack
fromGpxTrackSegment
objects.- Parameters:
segments
- The segments to build the track from. Input is not deep-copied, which means the caller may reuse the same segments to build multiple ImmutableGpxTrack instances from. This should not be a problem, since this object cannot modifythis.segments
.attributes
- Attributes for the GpxTrack, the input map is copied.- Since:
- 13210
-
-