org.wamblee.gps.track
Class FilteredTrack

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

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

Filtered track provides a filtered view on a track. Changes in the filter are also represented by the filtered track.

See Also:
Serialized Form

Constructor Summary
FilteredTrack(TrackFilter aFilter, Track aTrack)
           
 
Method Summary
 java.lang.String getDescription()
           
 double getMaxCoordinate(int aI)
           
 double getMinCoordinate(int aI)
           
 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

FilteredTrack

public FilteredTrack(TrackFilter aFilter,
                     Track aTrack)
Method Detail

getSegments

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

getDescription

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

getMaxCoordinate

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

getMinCoordinate

public double getMinCoordinate(int aI)
Specified by:
getMinCoordinate 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.

size

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


Copyright © 2010. All Rights Reserved.