source: josm/trunk/src/org/openstreetmap/josm/data/gpx/IGpxTrackSegment.java

Last change on this file was 15496, checked in by Don-vip, 6 years ago

fix #16796 - Rework of GPX track colors / layer preferences (patch by Bjoeni)

  • Property svn:eol-style set to native
File size: 909 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.gpx;
3
4import java.util.Collection;
5
6import org.openstreetmap.josm.data.Bounds;
7
8/**
9 * Read-only gpx track segments. Implementations don't have to be immutable, but should always be thread safe.
10 * @since 15496
11 */
12public interface IGpxTrackSegment extends IWithAttributes {
13
14 /**
15 * Returns the segment bounds.
16 * @return the segment bounds
17 */
18 Bounds getBounds();
19
20 /**
21 * Returns the segment waypoints.
22 * @return the segment waypoints
23 */
24 Collection<WayPoint> getWayPoints();
25
26 /**
27 * Returns the segment length.
28 * @return the segment length
29 */
30 double length();
31
32 /**
33 * Returns the number of times this track has been changed
34 * @return Number of times this track has been changed. Always 0 for read-only segments
35 */
36 int getUpdateCount();
37}
Note: See TracBrowser for help on using the repository browser.