public interface Renderer
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform pixelAT)
Tell the renderer to draw itself.
|
java.awt.Color |
getColor() |
LatLonRect |
getPreferredArea()
This allows application to automatically switch to some special area defined by the Renderer
|
void |
setColor(java.awt.Color color)
Tell the Renderer to use the given color.
|
void |
setProjection(ProjectionImpl project)
Tell the Renderer to use the given projection from now on.
|
void draw(java.awt.Graphics2D g, java.awt.geom.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.void setProjection(ProjectionImpl project)
project
- the projection to use.void setColor(java.awt.Color color)
color
- the Color to use.java.awt.Color getColor()
LatLonRect getPreferredArea()