source: josm/trunk/src/org/openstreetmap/josm/data/gpx/GpxTrack.java@ 3083

Last change on this file since 3083 was 2907, checked in by jttt, 14 years ago

Gpx refactoring - GpxTrack and GpxTrackSegment is now interface, implementations for specific use can be provided (currently JOSM supports immutable gpx track, livegps plugin supports append only track).

  • track length and bounds are precalculated
  • GpxLayer paints only currently visible segments
  • Property svn:eol-style set to native
File size: 491 bytes
Line 
1//License: GPLv2 or later
2//Copyright 2007 by Raphael Mack and others
3
4package org.openstreetmap.josm.data.gpx;
5
6import java.util.Collection;
7import java.util.Map;
8
9import org.openstreetmap.josm.data.Bounds;
10
11
12/**
13 * Read-only gpx track. Implementations doesn't have to be immutable, but should always be thread safe.
14 *
15 */
16
17public interface GpxTrack {
18
19 Collection<GpxTrackSegment> getSegments();
20 Map<String, Object> getAttributes();
21 Bounds getBounds();
22 double length();
23
24}
Note: See TracBrowser for help on using the repository browser.