public class ContourFeatureRenderer extends GisFeatureRenderer
displayProject, shapeList
Constructor and Description |
---|
ContourFeatureRenderer(ContourGrid conGrid,
ProjectionImpl dataProjection)
cstr
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform deviceFromNormalAT)
Overrides the GisFeatureRenderer draw() method, to draw contours
and with contour labels.
|
protected ProjectionImpl |
getDataProjection() |
protected java.util.List |
getFeatures() |
LatLonRect |
getPreferredArea()
Preferred map area on opening for first time.
|
void |
setShowLabels(boolean showlabels)
set switch whether contours labels are desired.
|
getColor, getShapes, setColor, setProjection
public ContourFeatureRenderer(ContourGrid conGrid, ProjectionImpl dataProjection)
public void setShowLabels(boolean showlabels)
public LatLonRect getPreferredArea()
GisFeatureRenderer
getPreferredArea
in interface Renderer
getPreferredArea
in class GisFeatureRenderer
protected java.util.List getFeatures()
getFeatures
in class GisFeatureRenderer
protected ProjectionImpl getDataProjection()
getDataProjection
in class GisFeatureRenderer
public void draw(java.awt.Graphics2D g, java.awt.geom.AffineTransform deviceFromNormalAT)
draw
in interface Renderer
draw
in class GisFeatureRenderer
g
- the Graphics2D context on which to drawdeviceFromNormalAT
- transforms "Normalized Device" to Device coordinates