net.divbyzero.gpx
Class GPX

java.lang.Object
  extended by net.divbyzero.gpx.GPX

public class GPX
extends Object

GPX track collection

A track collection is used to encapsulate the arbitrary number of tracks that can be contained in a single GPX file.

Since:
0.1
Author:
Martin Jansen

Constructor Summary
GPX()
           
 
Method Summary
 void addRoute(Track track)
          Adds a track to the collection.
 void addTrack(Track track)
          Adds a track to the collection.
 ArrayList<Track> getRoutes()
          Returns the list of track that make up the collection.
 ArrayList<Track> getTracks()
          Returns the list of track that make up the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPX

public GPX()
Method Detail

addTrack

public void addTrack(Track track)
Adds a track to the collection.

The track is added to the end of the collection. If it already existed in the collection before, it is added again.

Parameters:
track - the track to be added

getTracks

public ArrayList<Track> getTracks()
Returns the list of track that make up the collection.

Returns:
a list of tracks

addRoute

public void addRoute(Track track)
Adds a track to the collection.

The track is added to the end of the collection. If it already existed in the collection before, it is added again.

Parameters:
track - the track to be added

getRoutes

public ArrayList<Track> getRoutes()
Returns the list of track that make up the collection.

Returns:
a list of tracks


Processing library MapThing by Jon Reades. (C) 2013