ucar.unidata.view
Class CompositeRenderer

java.lang.Object
  extended by ucar.unidata.view.CompositeRenderer
All Implemented Interfaces:
Renderer

public class CompositeRenderer
extends Object
implements Renderer

Class CompositeRenderer

Version:
%I%, %G%
Author:
Unidata development team

Constructor Summary
CompositeRenderer()
          ctor
 
Method Summary
 void addRenderer(Renderer r)
          add a renderer
 void draw(Graphics2D g, AffineTransform pixelAT)
          draw
 Color getColor()
          Get the color
 ucar.unidata.geoloc.LatLonRect getPreferredArea()
          This allows application to automatically switch to some special area defined by the Renderer
 void removeRenderer(Renderer r)
          add a renderer
 void setColor(Color color)
          Tell the Renderer to use the given color.
 void setProjection(ucar.unidata.geoloc.ProjectionImpl project)
          Tell the Renderer to use the given projection from now on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeRenderer

public CompositeRenderer()
ctor

Method Detail

addRenderer

public void addRenderer(Renderer r)
add a renderer

Parameters:
r - renderer

removeRenderer

public void removeRenderer(Renderer r)
add a renderer

Parameters:
r - renderer

draw

public void draw(Graphics2D g,
                 AffineTransform pixelAT)
draw

Specified by:
draw in interface Renderer
Parameters:
g - graphcis
pixelAT - transform
See Also:
for an example using pixelAT.

setProjection

public void setProjection(ucar.unidata.geoloc.ProjectionImpl project)
Tell the Renderer to use the given projection from now on.

Specified by:
setProjection in interface Renderer
Parameters:
project - the projection to use.

setColor

public void setColor(Color color)
Tell the Renderer to use the given color.

Specified by:
setColor in interface Renderer
Parameters:
color - the Color to use.

getColor

public Color getColor()
Get the color

Specified by:
getColor in interface Renderer
Returns:
color

getPreferredArea

public ucar.unidata.geoloc.LatLonRect getPreferredArea()
This allows application to automatically switch to some special area defined by the Renderer

Specified by:
getPreferredArea in interface Renderer
Returns:
LatLonRect or null.