|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Renderer
A Renderer does the actual work of drawing objects.
| Method Summary | |
|---|---|
void |
draw(Graphics2D g,
AffineTransform pixelAT)
Tell the renderer to draw itself. |
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 |
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. |
| Method Detail |
|---|
void draw(Graphics2D g,
AffineTransform pixelAT)
g - the Graphics contextpixelAT - transforms "Normalized Device" to Device coordinates. When drawing to the screen,
this will be the identity transform. For other devices like printers, it is not the Identity transform.
Renderers should use "Normalized Device" coordinates if they want to render non-scalable objects.
Basically, you pretend you are working in screen pixels.for an example using pixelAT.void setProjection(ucar.unidata.geoloc.ProjectionImpl project)
project - the projection to use.void setColor(Color color)
color - the Color to use.Color getColor()
ucar.unidata.geoloc.LatLonRect getPreferredArea()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||