Package org.openstreetmap.josm.data.gpx
Interface IGpxTrack
- All Superinterfaces:
IWithAttributes
- All Known Implementing Classes:
GpxTrack
Gpx track. Implementations don't have to be immutable, but should always be thread safe.
- Since:
- 15496
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA track change event for the current track.static interfaceA listener that listens to GPX track changes. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidAdd a listener that listens to changes in the GPX track.Returns the track bounds.default ColorgetColor()Gets the color of this track.Returns the track segments.doublelength()Returns the track length.default voidRemove a listener that listens to changes in the GPX track.default voidSets the color of this track.Methods inherited from interface org.openstreetmap.josm.data.gpx.IWithAttributes
get, getAttributes, getCollection, getExtensions, getString, hasExtensions, put
-
Method Details
-
getSegments
Returns the track segments.- Returns:
- the track segments
-
getBounds
Returns the track bounds.- Returns:
- the track bounds
-
length
double length()Returns the track length.- Returns:
- the track length
-
getColor
Gets the color of this track.- Returns:
- The color,
nullif not set or not supported by the implementation. - Since:
- 15496
-
setColor
Sets the color of this track. Not necessarily supported by all implementations.- Parameters:
color- color of this track- Since:
- 15496
-
addListener
Add a listener that listens to changes in the GPX track.- Parameters:
l- The listener
-
removeListener
Remove a listener that listens to changes in the GPX track.- Parameters:
l- The listener
-