org.openstreetmap.josm.data.gpx
Class ImmutableGpxTrackSegment

java.lang.Object
  extended by org.openstreetmap.josm.data.gpx.ImmutableGpxTrackSegment
All Implemented Interfaces:
GpxTrackSegment

public class ImmutableGpxTrackSegment
extends java.lang.Object
implements GpxTrackSegment


Field Summary
private  Bounds bounds
           
private  double length
           
private  java.util.Collection<WayPoint> wayPoints
           
 
Constructor Summary
ImmutableGpxTrackSegment(java.util.Collection<WayPoint> wayPoints)
           
 
Method Summary
private  Bounds calculateBounds()
           
private  double calculateLength()
           
 Bounds getBounds()
           
 int getUpdateCount()
           
 java.util.Collection<WayPoint> getWayPoints()
           
 double length()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wayPoints

private final java.util.Collection<WayPoint> wayPoints

bounds

private final Bounds bounds

length

private final double length
Constructor Detail

ImmutableGpxTrackSegment

public ImmutableGpxTrackSegment(java.util.Collection<WayPoint> wayPoints)
Method Detail

calculateBounds

private Bounds calculateBounds()

calculateLength

private double calculateLength()

getBounds

public Bounds getBounds()
Specified by:
getBounds in interface GpxTrackSegment

getWayPoints

public java.util.Collection<WayPoint> getWayPoints()
Specified by:
getWayPoints in interface GpxTrackSegment

length

public double length()
Specified by:
length in interface GpxTrackSegment

getUpdateCount

public int getUpdateCount()
Specified by:
getUpdateCount in interface GpxTrackSegment
Returns:
Number of times this track has been changed. Always 0 for read-only segments


JOSM