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 ProjectionImpl
displayProject
protected ArrayList
shapeList
-
Constructor Summary
Constructors Constructor Description GisFeatureRenderer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
draw(Graphics2D g, AffineTransform pixelAT)
Draws all the features that are within the graphics clip rectangle, using the previously set displayProjection.Color
getColor()
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)
void
setColor(Color color)
Tell the Renderer to use the given color.void
setProjection(ProjectionImpl project)
Tell the Renderer to use the given projection from now on.
-
-
-
Field Detail
-
displayProject
protected ProjectionImpl displayProject
-
shapeList
protected ArrayList shapeList
-
-
Method Detail
-
getPreferredArea
public abstract LatLonRect getPreferredArea()
Preferred map area on opening for first time.- Specified by:
getPreferredArea
in interfaceRenderer
- Returns:
- lat/lon bounding box that specifies preferred area.
-
getFeatures
protected abstract List getFeatures()
-
getDataProjection
protected abstract ProjectionImpl getDataProjection()
-
setColor
public void setColor(Color color)
Description copied from interface:Renderer
Tell the Renderer to use the given color.
-
setProjection
public void setProjection(ProjectionImpl project)
Description copied from interface:Renderer
Tell the Renderer to use the given projection from now on.- Specified by:
setProjection
in 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)
-
-