Constructor and Description |
---|
CompositeRenderer()
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
addRenderer(Renderer r)
add a renderer
|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform pixelAT)
draw
|
java.awt.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(java.awt.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.
|
public void addRenderer(Renderer r)
r
- rendererpublic void removeRenderer(Renderer r)
r
- rendererpublic void draw(java.awt.Graphics2D g, java.awt.geom.AffineTransform pixelAT)
draw
in interface Renderer
g
- graphcispixelAT
- transformfor an example using pixelAT.
public void setProjection(ucar.unidata.geoloc.ProjectionImpl project)
setProjection
in interface Renderer
project
- the projection to use.public void setColor(java.awt.Color color)
public java.awt.Color getColor()
public ucar.unidata.geoloc.LatLonRect getPreferredArea()
getPreferredArea
in interface Renderer