Package ucar.nc2.ui.gis
Class GisFeatureRendererMulti
- java.lang.Object
-
- ucar.nc2.ui.gis.GisFeatureRenderer
-
- ucar.nc2.ui.gis.GisFeatureRendererMulti
-
- All Implemented Interfaces:
Renderer
- Direct Known Subclasses:
EsriShapefileRenderer
public abstract class GisFeatureRendererMulti extends GisFeatureRenderer
Superclass for rendering collections of GisFeatures.
-
-
Field Summary
-
Fields inherited from class ucar.nc2.ui.gis.GisFeatureRenderer
displayProject, shapeList
-
-
Constructor Summary
Constructors Constructor Description GisFeatureRendererMulti()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
createFeatureSet(double minDist)
protected abstract ProjectionImpl
getDataProjection()
protected abstract List
getFeatures()
abstract LatLonRect
getPreferredArea()
Preferred map area on opening for first time.protected Iterator
getShapes(Graphics2D g, AffineTransform normal2device)
protected double
getStats(Iterator featList)
static void
setDiscretization(boolean b)
static void
setPixelMatch(double d)
void
setProjection(ProjectionImpl project)
Sets new projection for subsequent drawing.-
Methods inherited from class ucar.nc2.ui.gis.GisFeatureRenderer
draw, getColor, setColor
-
-
-
-
Method Detail
-
setDiscretization
public static void setDiscretization(boolean b)
-
setPixelMatch
public static void setPixelMatch(double d)
-
getPreferredArea
public abstract LatLonRect getPreferredArea()
Description copied from class:GisFeatureRenderer
Preferred map area on opening for first time.- Specified by:
getPreferredArea
in interfaceRenderer
- Specified by:
getPreferredArea
in classGisFeatureRenderer
- Returns:
- lat/lon bounding box that specifies preferred area.
-
getFeatures
protected abstract List getFeatures()
- Specified by:
getFeatures
in classGisFeatureRenderer
-
getDataProjection
protected abstract ProjectionImpl getDataProjection()
- Specified by:
getDataProjection
in classGisFeatureRenderer
-
setProjection
public void setProjection(ProjectionImpl project)
Sets new projection for subsequent drawing.- Specified by:
setProjection
in interfaceRenderer
- Overrides:
setProjection
in classGisFeatureRenderer
- Parameters:
project
- the new projection
-
createFeatureSet
public void createFeatureSet(double minDist)
-
getShapes
protected Iterator getShapes(Graphics2D g, AffineTransform normal2device)
- Overrides:
getShapes
in classGisFeatureRenderer
-
getStats
protected double getStats(Iterator featList)
-
-