Package ucar.nc2.ui.gis
Class GisFeatureRenderer
- java.lang.Object
-
- ucar.nc2.ui.gis.GisFeatureRenderer
-
- All Implemented Interfaces:
Renderer
- Direct Known Subclasses:
ContourFeatureRenderer,GisFeatureRendererMulti,WorldMap
public abstract class GisFeatureRenderer extends Object implements Renderer
Superclass for rendering collections of GisFeatures.
-
-
Field Summary
Fields Modifier and Type Field Description protected ucar.unidata.geoloc.ProjectionImpldisplayProjectprotected ArrayListshapeList
-
Constructor Summary
Constructors Constructor Description GisFeatureRenderer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddraw(Graphics2D g, AffineTransform pixelAT)Draws all the features that are within the graphics clip rectangle, using the previously set displayProjection.ColorgetColor()protected abstract ucar.unidata.geoloc.ProjectionImplgetDataProjection()protected abstract ListgetFeatures()abstract ucar.unidata.geoloc.LatLonRectgetPreferredArea()Preferred map area on opening for first time.protected IteratorgetShapes(Graphics2D g, AffineTransform normal2device)voidsetColor(Color color)Tell the Renderer to use the given color.voidsetProjection(ucar.unidata.geoloc.ProjectionImpl project)Tell the Renderer to use the given projection from now on.
-
-
-
Field Detail
-
displayProject
protected ucar.unidata.geoloc.ProjectionImpl displayProject
-
shapeList
protected ArrayList shapeList
-
-
Method Detail
-
getPreferredArea
public abstract ucar.unidata.geoloc.LatLonRect getPreferredArea()
Preferred map area on opening for first time.- Specified by:
getPreferredAreain interfaceRenderer- Returns:
- lat/lon bounding box that specifies preferred area.
-
getFeatures
protected abstract List getFeatures()
-
getDataProjection
protected abstract ucar.unidata.geoloc.ProjectionImpl getDataProjection()
-
setColor
public void setColor(Color color)
Description copied from interface:RendererTell the Renderer to use the given color.
-
setProjection
public void setProjection(ucar.unidata.geoloc.ProjectionImpl project)
Description copied from interface:RendererTell the Renderer to use the given projection from now on.- Specified by:
setProjectionin interfaceRenderer- Parameters:
project- the projection to use.
-
draw
public void draw(Graphics2D g, AffineTransform pixelAT)
Draws all the features that are within the graphics clip rectangle, using the previously set displayProjection.
-
getShapes
protected Iterator getShapes(Graphics2D g, AffineTransform normal2device)
-
-