ilog.views.maps.raster
Interface IlvRasterMappedBuffer.JITDataLoader

Enclosing class:
IlvRasterMappedBuffer

public static interface IlvRasterMappedBuffer.JITDataLoader

Class responsible for loading raster data when an IlvRasterTileLoader loads a tile whose buffer is empty (0 bytes).

Since:
JViews 7.5

Method Summary
 void loadData(IlvRasterMappedBuffer source, IlvRasterProperties properties)
          Method to load data when the tile loader needs it.
 void unloadData(IlvRasterMappedBuffer rasterMappedBuffer, IlvRasterProperties rasterProperties)
          Method to unload a tile content.
 

Method Detail

loadData

void loadData(IlvRasterMappedBuffer source,
              IlvRasterProperties properties)
Method to load data when the tile loader needs it. For example:
public void loadData(IlvRasterMappedBuffer source,IlvRasterProperties properties) {
  String fileName = properties.getBaseName();
  ... read the bytes deom the file ...
  source.setBytes(bytes);
} 
     

Parameters:
source - data Buffer to fill with data read on the fly.
properties - information attached to this buffer.

unloadData

void unloadData(IlvRasterMappedBuffer rasterMappedBuffer,
                IlvRasterProperties rasterProperties)
Method to unload a tile content.

Parameters:
rasterMappedBuffer - data Buffer to clear when tile is unloaded.
rasterProperties - information attached to this buffer.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.