deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.coverage.raster.data.container
Class MemoryRasterDataContainer

java.lang.Object
  extended by org.deegree.coverage.raster.data.container.MemoryRasterDataContainer
All Implemented Interfaces:
RasterDataContainer, RasterDataContainerProvider

public class MemoryRasterDataContainer
extends Object
implements RasterDataContainer, RasterDataContainerProvider

This class implements a RasterDataContainer that keeps RasterData in memory.

Version:
$Revision: 21326 $, $Date: 2009-12-08 18:20:55 +0100 (Di, 08 Dez 2009) $
Author:
Oliver Tonnhofer, last edited by: $Author: rbezema $

Constructor Summary
MemoryRasterDataContainer()
          Creates an empty RasterDataContainer that stores the raster data in memory.
MemoryRasterDataContainer(RasterData raster)
          Wraps RasterData in a RasterDataContainer.
MemoryRasterDataContainer(RasterDataReader reader)
          Reads RasterData from RasterReader and wraps it in a RasterDataContainer.
 
Method Summary
 int getColumns()
          Returns the columns / width in pixel of the raster
 RasterData getRasterData()
          Returns the RasterData
 RasterDataContainer getRasterDataContainer(RasterDataContainerFactory.LoadingPolicy type)
          Returns a new RasterDataContainer for given type or null, if the implementation doesn't provide this type.
 RasterData getReadOnlyRasterData()
          Returns the RasterData as a read-only copy.
 int getRows()
          Returns the rows / height in pixel of the raster
 void setRasterDataReader(RasterDataReader reader)
          Sets the source of the raster data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryRasterDataContainer

public MemoryRasterDataContainer()
Creates an empty RasterDataContainer that stores the raster data in memory.


MemoryRasterDataContainer

public MemoryRasterDataContainer(RasterDataReader reader)
Reads RasterData from RasterReader and wraps it in a RasterDataContainer. RasterData stays in memory.

Parameters:
reader - RasterReader for RasterData

MemoryRasterDataContainer

public MemoryRasterDataContainer(RasterData raster)
Wraps RasterData in a RasterDataContainer. RasterData stays in memory.

Parameters:
raster - RasterData to wrap
Method Detail

getColumns

public int getColumns()
Description copied from interface: RasterDataContainer
Returns the columns / width in pixel of the raster

Specified by:
getColumns in interface RasterDataContainer
Returns:
columns of the raster

getRows

public int getRows()
Description copied from interface: RasterDataContainer
Returns the rows / height in pixel of the raster

Specified by:
getRows in interface RasterDataContainer
Returns:
rows of the raster

getRasterData

public RasterData getRasterData()
Description copied from interface: RasterDataContainer
Returns the RasterData

Specified by:
getRasterData in interface RasterDataContainer
Returns:
RasterData

getReadOnlyRasterData

public RasterData getReadOnlyRasterData()
Description copied from interface: RasterDataContainer
Returns the RasterData as a read-only copy. Only a read-only RasterData supports thread-safe read operations.

Specified by:
getReadOnlyRasterData in interface RasterDataContainer
Returns:
RasterData

setRasterDataReader

public void setRasterDataReader(RasterDataReader reader)
Description copied from interface: RasterDataContainer
Sets the source of the raster data.

Specified by:
setRasterDataReader in interface RasterDataContainer
Parameters:
reader - the raster data reader for this container

getRasterDataContainer

public RasterDataContainer getRasterDataContainer(RasterDataContainerFactory.LoadingPolicy type)
Description copied from interface: RasterDataContainerProvider
Returns a new RasterDataContainer for given type or null, if the implementation doesn't provide this type.

Specified by:
getRasterDataContainer in interface RasterDataContainerProvider
Returns:
a RasterDataContainer for given type or null

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>