com.partnersoft.v3x.apps.GPS
Class GPSSource

java.lang.Object
  extended by com.partnersoft.v3x.apps.MapBrowser.AbstractSelectableMapDataSource
      extended by com.partnersoft.v3x.apps.MapBrowser.MapPointSource
          extended by com.partnersoft.v3x.apps.GPS.GPSSource
All Implemented Interfaces:
MapDataSource, SelectableMapDataSource

public class GPSSource
extends MapPointSource

the source for GPS points


Constructor Summary
GPSSource()
           
GPSSource(java.util.ArrayList newGPSPoints)
           
 
Method Summary
 java.util.Iterator allPoints()
          Returns an enumeration of all the map points.
 void clearSelection()
          clears any selected points
 boolean containsSelected()
           
 void createFauxPoints()
           
 Coord3D getClosestPointTo(Coord3D pointClicked)
           
 java.util.ArrayList getGPSPoints()
           
 GPSPoint getSelectedPoint()
          returns the currently selcted GPSPoint, this will return a null if none are selected
 double getShortestDistanceTo(Coord3D pointClicked)
          this will return the shortest distance to a point contained in this source
 boolean isEmpty()
           
 void removeSelected()
           
 Coord3D selectClosestPointTo(Coord3D pointClicked)
           
 void setGPSPoints(java.util.ArrayList newList)
           
 
Methods inherited from class com.partnersoft.v3x.apps.MapBrowser.MapPointSource
createDefaultRenderer, createSpecifier, fireChanged, getHiliteSource, getIndicatorSource, getPoints, setPoints, setSpace
 
Methods inherited from class com.partnersoft.v3x.apps.MapBrowser.AbstractSelectableMapDataSource
addChangeListener, getImageLibraries, getName, getPath, isVerbose, removeChangeListener, setImageLibraries, setName, setPath, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPSSource

public GPSSource(java.util.ArrayList newGPSPoints)

GPSSource

public GPSSource()
Method Detail

getShortestDistanceTo

public double getShortestDistanceTo(Coord3D pointClicked)
this will return the shortest distance to a point contained in this source


getClosestPointTo

public Coord3D getClosestPointTo(Coord3D pointClicked)

selectClosestPointTo

public Coord3D selectClosestPointTo(Coord3D pointClicked)

getSelectedPoint

public GPSPoint getSelectedPoint()
returns the currently selcted GPSPoint, this will return a null if none are selected


clearSelection

public void clearSelection()
clears any selected points


containsSelected

public boolean containsSelected()

removeSelected

public void removeSelected()

isEmpty

public boolean isEmpty()

allPoints

public java.util.Iterator allPoints()
Description copied from class: MapPointSource
Returns an enumeration of all the map points.

Overrides:
allPoints in class MapPointSource

createFauxPoints

public void createFauxPoints()

setGPSPoints

public void setGPSPoints(java.util.ArrayList newList)

getGPSPoints

public java.util.ArrayList getGPSPoints()