com.metsci.glimpse.painter.geo
Class LatLonTrackPainter

java.lang.Object
  extended by com.metsci.glimpse.painter.base.GlimpsePainterImpl
      extended by com.metsci.glimpse.painter.base.GlimpsePainter2D
          extended by com.metsci.glimpse.painter.base.GlimpseDataPainter2D
              extended by com.metsci.glimpse.painter.track.TrackPainter
                  extended by com.metsci.glimpse.painter.geo.LatLonTrackPainter
All Implemented Interfaces:
GlimpsePainter

public class LatLonTrackPainter
extends TrackPainter

A facade over TrackPainter which allows the specification of new track points in lat/lon and automatically uses the provided GeoProjection to convert to plot coordinates.

Author:
ulman

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.track.TrackPainter
QUAD_TREE_BIN_MAX, SPATIAL_SELECTION_UPDATE_RATE, TRACK_LABEL_OFFSET_X, TRACK_LABEL_OFFSET_Y, TRACK_SIZE_ESTIMATE
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
LatLonTrackPainter(GeoProjection geoProjection)
           
LatLonTrackPainter(GeoProjection geoProjection, boolean enableSpatialIndex)
           
 
Method Summary
 void addPointGeo(int trackId, int pointId, double lat, double lon, long time)
           
 void addPointGeo(int trackId, int pointId, LatLonGeo latLon, long time)
           
 java.util.Collection<Point> getGeoRange(LatLonGeo minLatLon, LatLonGeo maxLatLon)
           
 java.util.Collection<Point> getTimeGeoRange(LatLonGeo minLatLon, LatLonGeo maxLatLon)
           
 java.util.Collection<Point> getTimeGeoRange(long minTime, long maxTime, LatLonGeo minLatLon, LatLonGeo maxLatLon)
           
 
Methods inherited from class com.metsci.glimpse.painter.track.TrackPainter
addPoint, addPoints, addSpatialSelectionListener, addTemporalSelectionListener, clearTrack, deleteAll, deleteTrack, displayTimeRange, displayTimeRange, displayTimeRange, displayTimeRange, dispose, gcDataBuffer, getGeoRange, getTimeGeoRange, getTimeGeoRange, getTimeGeoRange, getTrackHead, getTrackHeads, paintTo, removeTemporalSelectionListener, setDotted, setDotted, setHeadPointColor, setHeadPointColor, setHeadPointSize, setLabel, setLabelColor, setLabelColor, setLabelLineColor, setLabelLineColor, setLineColor, setLineColor, setLineWidth, setPointColor, setPointColor, setPointSize, setShowHeadPoint, setShowLabel, setShowLabelLine, setShowLines, setShowPoints
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpseDataPainter2D
paintTo
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainter2D
paintTo
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
dispose, isDisposed, isVisible, paintTo, setErrorHandling, setLookAndFeel, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LatLonTrackPainter

public LatLonTrackPainter(GeoProjection geoProjection)

LatLonTrackPainter

public LatLonTrackPainter(GeoProjection geoProjection,
                          boolean enableSpatialIndex)
Method Detail

addPointGeo

public void addPointGeo(int trackId,
                        int pointId,
                        double lat,
                        double lon,
                        long time)

addPointGeo

public void addPointGeo(int trackId,
                        int pointId,
                        LatLonGeo latLon,
                        long time)

getGeoRange

public java.util.Collection<Point> getGeoRange(LatLonGeo minLatLon,
                                               LatLonGeo maxLatLon)

getTimeGeoRange

public java.util.Collection<Point> getTimeGeoRange(LatLonGeo minLatLon,
                                                   LatLonGeo maxLatLon)

getTimeGeoRange

public java.util.Collection<Point> getTimeGeoRange(long minTime,
                                                   long maxTime,
                                                   LatLonGeo minLatLon,
                                                   LatLonGeo maxLatLon)


Copyright © 2012 Metron, Inc.. All Rights Reserved.