Class PrefetchedImage.Worker

java.lang.Object
org.apache.sis.internal.coverage.j2d.TileOpExecutor
org.apache.sis.image.PrefetchedImage.Worker
Enclosing class:
PrefetchedImage

private final class PrefetchedImage.Worker extends TileOpExecutor
A worker for prefetching tiles in an image.
  • Field Details

    • tileWidth

      private final long tileWidth
      Image properties for converting pixel coordinates to tile indices.
    • tileHeight

      private final long tileHeight
      Image properties for converting pixel coordinates to tile indices.
    • tileGridXOffset

      private final long tileGridXOffset
      Image properties for converting pixel coordinates to tile indices.
    • tileGridYOffset

      private final long tileGridYOffset
      Image properties for converting pixel coordinates to tile indices.
  • Constructor Details

    • Worker

      Worker(RenderedImage source, Rectangle aoi)
      Prepares an instance for prefetching tiles from the given image.
  • Method Details

    • readFrom

      protected void readFrom(Raster source)
      Invoked when a tile has been computed, possibly in a background thread.
      Overrides:
      readFrom in class TileOpExecutor
      Parameters:
      source - the tile to read.