Class DeferredProperty

java.lang.Object
org.apache.sis.internal.coverage.j2d.DeferredProperty

public final class DeferredProperty extends Object
An image property for which the computation is differed. This special kind of properties is recognized by the following methods:
Since:
1.1
Version:
1.1
Author:
Martin Desruisseaux (Geomatys)
  • Constructor Details

    • DeferredProperty

      public DeferredProperty(Function<RenderedImage,?> provider)
      Creates a new deferred property.
      Parameters:
      provider - function computing the value.
  • Method Details

    • forGridGeometry

      public static Map<String,Object> forGridGeometry(GridGeometry grid, int[] dimensions)
      Creates a deferred property for computing the value of PlanarImage.GRID_GEOMETRY_KEY.
      Parameters:
      grid - the grid geometry of the grid coverage rendered as an image.
      dimensions - the dimensions to keep from the coverage grid geometry.
      Returns:
      a deferred property for computing the grid geometry of an image.