|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGridCoverageRenderer
public final class GridCoverageRenderer
A helper class for rendering GridCoverage
objects. Support for grid coverage SLD stylers is still limited.
modules/library/render (gt-render.jar)
Constructor Summary | |
---|---|
GridCoverageRenderer(CoordinateReferenceSystem destinationCRS,
Envelope envelope,
Rectangle screenSize)
Deprecated. Use GridCoverageRenderer(CoordinateReferenceSystem, Envelope, Rectangle, AffineTransform, RenderingHints)
instead |
|
GridCoverageRenderer(CoordinateReferenceSystem destinationCRS,
Envelope envelope,
Rectangle screenSize,
AffineTransform worldToScreen)
Creates a new GridCoverageRenderer object. |
|
GridCoverageRenderer(CoordinateReferenceSystem destinationCRS,
Envelope envelope,
Rectangle screenSize,
AffineTransform worldToScreen,
RenderingHints java2dHints)
Creates a new GridCoverageRenderer object. |
|
GridCoverageRenderer(CoordinateReferenceSystem destinationCRS,
Envelope envelope,
Rectangle screenSize,
RenderingHints java2dHints)
Deprecated. Use GridCoverageRenderer(CoordinateReferenceSystem, Envelope, Rectangle, AffineTransform, RenderingHints)
instead |
Method Summary | |
---|---|
void |
paint(Graphics2D graphics,
GridCoverage2D gridCoverage,
RasterSymbolizer symbolizer)
Paint this grid coverage. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridCoverageRenderer(CoordinateReferenceSystem destinationCRS, Envelope envelope, Rectangle screenSize) throws TransformException, NoninvertibleTransformException
GridCoverageRenderer(CoordinateReferenceSystem, Envelope, Rectangle, AffineTransform, RenderingHints)
instead
GridCoverageRenderer
object.
destinationCRS
- the CRS of the GridCoverage2D
to render.envelope
- delineating the area to be rendered.screenSize
- at which we want to rendere the source
GridCoverage2D
.worldToScreen
- if not null
and if it contains a rotation,
this Affine Tranform is used directly to convert from world coordinates
to screen coordinates. Otherwise, a standard GridToEnvelopeMapper
is used to calculate the affine transform.
TransformException
NoninvertibleTransformException
public GridCoverageRenderer(CoordinateReferenceSystem destinationCRS, Envelope envelope, Rectangle screenSize, AffineTransform worldToScreen) throws TransformException, NoninvertibleTransformException
GridCoverageRenderer
object.
destinationCRS
- the CRS of the GridCoverage2D
to render.envelope
- delineating the area to be rendered.screenSize
- at which we want to rendere the source
GridCoverage2D
.worldToScreen
- if not null
and if it contains a rotation,
this Affine Tranform is used directly to convert from world coordinates
to screen coordinates. Otherwise, a standard GridToEnvelopeMapper
is used to calculate the affine transform.
TransformException
NoninvertibleTransformException
public GridCoverageRenderer(CoordinateReferenceSystem destinationCRS, Envelope envelope, Rectangle screenSize, RenderingHints java2dHints) throws TransformException, NoninvertibleTransformException
GridCoverageRenderer(CoordinateReferenceSystem, Envelope, Rectangle, AffineTransform, RenderingHints)
instead
GridCoverageRenderer
object.
destinationCRS
- the CRS of the GridCoverage2D
to render.envelope
- delineating the area to be rendered.screenSize
- at which we want to rendere the source
GridCoverage2D
.java2dHints
- to control this rendering process.
TransformException
NoninvertibleTransformException
public GridCoverageRenderer(CoordinateReferenceSystem destinationCRS, Envelope envelope, Rectangle screenSize, AffineTransform worldToScreen, RenderingHints java2dHints) throws TransformException, NoninvertibleTransformException
GridCoverageRenderer
object.
destinationCRS
- the CRS of the GridCoverage2D
to render.envelope
- delineating the area to be rendered.screenSize
- at which we want to rendere the source
GridCoverage2D
.worldToScreen
- if not null
and if it contains a rotation,
this Affine Tranform is used directly to convert from world coordinates
to screen coordinates. Otherwise, a standard GridToEnvelopeMapper
is used to calculate the affine transform.java2dHints
- to control this rendering process.
TransformException
NoninvertibleTransformException
Method Detail |
---|
public void paint(Graphics2D graphics, GridCoverage2D gridCoverage, RasterSymbolizer symbolizer) throws FactoryException, TransformException, NoninvertibleTransformException
graphics
has an affine transform mapping "real world"
coordinates in the coordinate system given by #getCoordinateSystem
.
graphics
- the Graphics2D
context in which to paint.metaBufferedEnvelope
-
FactoryException
TransformException
NoninvertibleTransformException
Exception
UnsupportedOperationException
- if the transformation from grid to coordinate system in
the GridCoverage is not an AffineTransform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |