Class TiledGridCoverage.Snapshot

Enclosing class:
Tiled­Grid­Coverage

protected static class TiledGridCoverage.Snapshot extends TiledGridCoverage.AOI
Snapshot of a Tiled­Grid­Coverage​.Tile­Iterator position. Those snapshots can be created during an iteration for processing a tile later. For example, a Tiled­Grid­Coverage​.read­Tiles(Tile­Iterator) method implementation may want to create a list of all tiles to load before to start the actual reading process in order to read the tiles in some optimal order, or for combining multiple read operations in a single operation.
Since:
1.7
  • Field Details

    • originX

      public final int originX
      Pixel coordinates of the upper-left corner of the tile.
    • originY

      public final int originY
      Pixel coordinates of the upper-left corner of the tile.
  • Constructor Details

    • Snapshot

      public Snapshot(TiledGridCoverage.AOI iterator)
      Stores information about a tile to be loaded.
      Parameters:
      iterator - the iterator for which to create a snapshot of its current position.
  • Method Details

    • fireTileReadStarted

      public void fireTileReadStarted()
      Sends to the listeners a notification that the reading of the tile identified by this snapshot started. If this event has not already been sent for this snapshot, this method creates a Tile­Read­Event and gives this event to the resource's listeners.

      This event is sent only once per Snapshot instance. If this method is invoked more than once, the extra calls are no-operation.