Package ucar.unidata.view
Class CompositeRenderer
java.lang.Object
ucar.unidata.view.CompositeRenderer
- All Implemented Interfaces:
Renderer
Class CompositeRenderer
- Version:
- %I%, %G%
- Author:
- Unidata development team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add a renderervoid
draw
(Graphics2D g, AffineTransform pixelAT) drawgetColor()
Get the colorucar.unidata.geoloc.LatLonRect
This allows application to automatically switch to some special area defined by the Renderervoid
add a renderervoid
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.
-
Constructor Details
-
CompositeRenderer
public CompositeRenderer()ctor
-
-
Method Details
-
addRenderer
add a renderer- Parameters:
r
- renderer
-
removeRenderer
add a renderer- Parameters:
r
- renderer
-
draw
draw -
setProjection
public void setProjection(ucar.unidata.geoloc.ProjectionImpl project) Tell the Renderer to use the given projection from now on.- Specified by:
setProjection
in interfaceRenderer
- Parameters:
project
- the projection to use.
-
setColor
Tell the Renderer to use the given color. -
getColor
Get the 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 interfaceRenderer
- Returns:
- LatLonRect or null.
-