Class DeferredProperty.ImageGeometry
java.lang.Object
org.apache.sis.internal.coverage.j2d.DeferredProperty.ImageGeometry
- All Implemented Interfaces:
Function<RenderedImage,GridGeometry>
- Enclosing class:
- DeferredProperty
private static final class DeferredProperty.ImageGeometry
extends Object
implements Function<RenderedImage,GridGeometry>
A deferred property for computing the value of
PlanarImage.GRID_GEOMETRY_KEY.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe dimensions to keep from the coverage grid geometry.private final intThe dimensions to keep from the coverage grid geometry.private final GridGeometryThe grid geometry of the grid coverage rendered as an image. -
Constructor Summary
ConstructorsConstructorDescriptionImageGeometry(GridGeometry grid, int[] dimensions) Creates a deferred property for an image grid geometry. -
Method Summary
Modifier and TypeMethodDescriptionapply(RenderedImage image) Invoked when thePlanarImage.GRID_GEOMETRY_KEYvalue needs to be computed.
-
Field Details
-
grid
The grid geometry of the grid coverage rendered as an image. -
dimX
private final int dimXThe dimensions to keep from the coverage grid geometry. -
dimY
private final int dimYThe dimensions to keep from the coverage grid geometry.
-
-
Constructor Details
-
ImageGeometry
Creates a deferred property for an image grid geometry.- Parameters:
grid- the grid geometry of the grid coverage rendered as an image.dimensions- the dimensions to keep from the coverage grid geometry.
-
-
Method Details
-
apply
Invoked when thePlanarImage.GRID_GEOMETRY_KEYvalue needs to be computed. The image should have been rendered from a grid coverage having the grid geometry given at construction time.- Specified by:
applyin interfaceFunction<RenderedImage,GridGeometry> - Parameters:
image- the image for which to compute the property.- Returns:
- the grid geometry property computed for the given image.
-