ucar.unidata.gis
Class GisFeatureRenderer

java.lang.Object
  extended by ucar.unidata.gis.GisFeatureRenderer
All Implemented Interfaces:
Renderer
Direct Known Subclasses:
GisFeatureRendererMulti, McidasMap, WorldMap

public abstract class GisFeatureRenderer
extends Object
implements Renderer

Superclass for rendering collections of GisFeatures.

Version:
$Id: GisFeatureRenderer.java,v 1.16 2005/05/13 18:29:33 jeffmc Exp $
Author:
John Caron

Field Summary
protected  ucar.unidata.geoloc.ProjectionImpl displayProject
          _more_
protected  ArrayList shapeList
          _more_
 
Constructor Summary
GisFeatureRenderer()
           
 
Method Summary
 void draw(Graphics2D g, AffineTransform pixelAT)
          Draws all the features that are within the graphics clip rectangle, using the previously set displayProjection.
 Color getColor()
          _more_
protected abstract  ucar.unidata.geoloc.ProjectionImpl getDataProjection()
          _more_
protected abstract  List getFeatures()
          _more_
abstract  ucar.unidata.geoloc.LatLonRect getPreferredArea()
          Preferred map area on opening for first time.
protected  Iterator getShapes(Graphics2D g, AffineTransform normal2device)
          _more_
 void setColor(Color color)
          _more_
 void setProjection(ucar.unidata.geoloc.ProjectionImpl project)
          _more_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

displayProject

protected ucar.unidata.geoloc.ProjectionImpl displayProject
_more_


shapeList

protected ArrayList shapeList
_more_

Constructor Detail

GisFeatureRenderer

public GisFeatureRenderer()
Method Detail

getPreferredArea

public abstract ucar.unidata.geoloc.LatLonRect getPreferredArea()
Preferred map area on opening for first time.

Specified by:
getPreferredArea in interface Renderer
Returns:
lat/lon bounding box that specifies preferred area.

getFeatures

protected abstract List getFeatures()
_more_

Returns:
_more_

getDataProjection

protected abstract ucar.unidata.geoloc.ProjectionImpl getDataProjection()
_more_

Returns:
_more_

getColor

public Color getColor()
_more_

Specified by:
getColor in interface Renderer
Returns:
_more_

setColor

public void setColor(Color color)
_more_

Specified by:
setColor in interface Renderer
Parameters:
color -

setProjection

public void setProjection(ucar.unidata.geoloc.ProjectionImpl project)
_more_

Specified by:
setProjection in interface Renderer
Parameters:
project -

draw

public void draw(Graphics2D g,
                 AffineTransform pixelAT)
Draws all the features that are within the graphics clip rectangle, using the previously set displayProjection.

Specified by:
draw in interface Renderer
Parameters:
g - the Graphics2D context on which to draw
pixelAT - transforms "Normalized Device" to Device coordinates
See Also:
for an example using pixelAT.

getShapes

protected Iterator getShapes(Graphics2D g,
                             AffineTransform normal2device)
_more_

Parameters:
g -
normal2device -
Returns:
_more_