Class LatLonTrackPainter
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.core.painter.track.TrackPainter
-
- com.metsci.glimpse.core.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 providedGeoProjection
to convert to plot coordinates.- Author:
- ulman
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.metsci.glimpse.core.painter.track.TrackPainter
TrackPainter.SpatialSelectionAxisListener
-
-
Field Summary
-
Fields inherited from class com.metsci.glimpse.core.painter.track.TrackPainter
comparator, FLOATS_PER_VERTEX, QUAD_TREE_BIN_MAX, SPATIAL_SELECTION_UPDATE_RATE, textFont, TRACK_LABEL_OFFSET_X, TRACK_LABEL_OFFSET_Y, TRACK_SIZE_ESTIMATE
-
-
Constructor Summary
Constructors Constructor Description LatLonTrackPainter(GeoProjection geoProjection)
LatLonTrackPainter(GeoProjection geoProjection, boolean enableSpatialIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPointGeo(int trackId, int pointId, double lat, double lon, long time)
void
addPointGeo(int trackId, int pointId, LatLonGeo latLon, long time)
Collection<Point>
getGeoRange(LatLonGeo minLatLon, LatLonGeo maxLatLon)
Collection<Point>
getTimeGeoRange(long minTime, long maxTime, LatLonGeo minLatLon, LatLonGeo maxLatLon)
Collection<Point>
getTimeGeoRange(LatLonGeo minLatLon, LatLonGeo maxLatLon)
-
Methods inherited from class com.metsci.glimpse.core.painter.track.TrackPainter
addPoint, addPoints, addSpatialSelectionListener, addTemporalSelectionListener, clearTrack, deleteAll, deleteTrack, displayTimeRange, displayTimeRange, displayTimeRange, displayTimeRange, displayTimeRange, displayTimeRange, doDispose, doPaintTo, gcDataBuffer, getGeoRange, getNearestPoint, getNearestPoint, getNearestPoint, getPixelRange, getTimeGeoRange, getTimeGeoRange, getTimeGeoRange, getTimePixelRange, getTrackHead, getTrackHeads, isSpatialIndexed, removeTemporalSelectionListener, setDotted, setDotted, setHeadPointColor, setHeadPointColor, setHeadPointSize, setLabel, setLabelColor, setLabelColor, setLabelLineColor, setLabelLineColor, setLineColor, setLineColor, setLineStyle, setLineWidth, setPointColor, setPointColor, setPointSize, setShowHeadPoint, setShowLabel, setShowLabelLine, setShowLines, setShowPoints
-
Methods inherited from class com.metsci.glimpse.core.painter.base.GlimpsePainterBase
dispose, getAxis1D, getAxis2D, getBounds, getGL3, isDisposed, isVisible, paintTo, requireAxis1D, requireAxis2D, setLookAndFeel, setVisible
-
-
-
-
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 Collection<Point> getGeoRange(LatLonGeo minLatLon, LatLonGeo maxLatLon)
-
getTimeGeoRange
public Collection<Point> getTimeGeoRange(LatLonGeo minLatLon, LatLonGeo maxLatLon)
-
getTimeGeoRange
public Collection<Point> getTimeGeoRange(long minTime, long maxTime, LatLonGeo minLatLon, LatLonGeo maxLatLon)
-
-