public abstract class GisFeatureRenderer extends Object implements Renderer
| Modifier and Type | Field and Description |
|---|---|
protected ucar.unidata.geoloc.Projection |
displayProject |
protected ArrayList<Shape> |
shapeList |
| Constructor and Description |
|---|
GisFeatureRenderer() |
| Modifier and Type | Method and 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 ucar.unidata.geoloc.Projection |
getDataProjection() |
protected abstract List<GisFeature> |
getFeatures() |
abstract ucar.unidata.geoloc.LatLonRect |
getPreferredArea()
Preferred map area on opening for first time.
|
protected Iterable<Shape> |
getShapes(Graphics2D g,
AffineTransform normal2device) |
void |
setColor(Color color)
Tell the Renderer to use the given color.
|
void |
setProjection(ucar.unidata.geoloc.Projection project)
Tell the Renderer to use the given projection from now on.
|
public abstract ucar.unidata.geoloc.LatLonRect getPreferredArea()
getPreferredArea in interface Rendererprotected abstract List<GisFeature> getFeatures()
protected abstract ucar.unidata.geoloc.Projection getDataProjection()
public void setColor(Color color)
Rendererpublic void setProjection(ucar.unidata.geoloc.Projection project)
RenderersetProjection in interface Rendererproject - the projection to use.public void draw(Graphics2D g, AffineTransform pixelAT)
protected Iterable<Shape> getShapes(Graphics2D g, AffineTransform normal2device)