org.wamblee.gps.track
Class TrackImpl

java.lang.Object
  extended by org.wamblee.gps.track.TrackImpl
All Implemented Interfaces:
java.io.Serializable, Track, TrackSegment

public class TrackImpl
extends java.lang.Object
implements Track, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
TrackImpl(java.lang.String aDescription)
           
 
Method Summary
 void addSegment(TrackSegment aSegment)
           
 java.lang.String getDescription()
           
 double getMaxCoordinate(int i)
           
 double getMinCoordinate(int i)
           
 Point getPoint(int aIndex)
          Gets the point at the given inded.
 java.util.List<TrackSegment> getSegments()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackImpl

public TrackImpl(java.lang.String aDescription)
Method Detail

addSegment

public void addSegment(TrackSegment aSegment)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface TrackSegment

getPoint

public Point getPoint(int aIndex)
Description copied from interface: TrackSegment
Gets the point at the given inded.

Specified by:
getPoint in interface TrackSegment
Parameters:
aIndex - 0 <= aIndex < size()
Returns:
Point.

getMinCoordinate

public double getMinCoordinate(int i)
Specified by:
getMinCoordinate in interface TrackSegment

getMaxCoordinate

public double getMaxCoordinate(int i)
Specified by:
getMaxCoordinate in interface TrackSegment

getSegments

public java.util.List<TrackSegment> getSegments()
Specified by:
getSegments in interface Track

size

public int size()
Specified by:
size in interface TrackSegment
Returns:
Number of points in the track.


Copyright © 2010. All Rights Reserved.