org.deegree.coverage.raster.utils
Class FloatColorModel

java.lang.Object
  extended by java.awt.image.ColorModel
      extended by org.deegree.coverage.raster.utils.FloatColorModel
All Implemented Interfaces:
Transparency

public class FloatColorModel
extends ColorModel

The FloatColorModel maps java float numbers to integer values. The returned integer values are converted with the ByteBuffer conversions methods.

Version:
$Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class java.awt.image.ColorModel
pixel_bits, transferType
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
FloatColorModel(byte[] noData)
          Constructs a float colormodel with the given no data value.
 
Method Summary
 ColorModel coerceData(WritableRaster raster, boolean isAlphaPremultiplied)
           
 int getAlpha(int pixel)
           
 int getAlpha(Object inData)
           
 int getBlue(int pixel)
           
 int getBlue(Object inData)
           
 int getGreen(int pixel)
           
 int getGreen(Object inData)
           
 int getRed(int pixel)
           
 int getRed(Object inData)
           
 int getRGB(int pixel)
           
 int getRGB(Object inData)
           
 boolean isCompatibleRaster(Raster raster)
           
 boolean isCompatibleSampleModel(SampleModel sm)
           
 
Methods inherited from class java.awt.image.ColorModel
createCompatibleSampleModel, createCompatibleWritableRaster, equals, finalize, getAlphaRaster, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getDataElements, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FloatColorModel

public FloatColorModel(byte[] noData)
Constructs a float colormodel with the given no data value.

Parameters:
noData -
Method Detail

getAlpha

public int getAlpha(int pixel)
Specified by:
getAlpha in class ColorModel

getRed

public int getRed(int pixel)
Specified by:
getRed in class ColorModel

getGreen

public int getGreen(int pixel)
Specified by:
getGreen in class ColorModel

getBlue

public int getBlue(int pixel)
Specified by:
getBlue in class ColorModel

getRGB

public int getRGB(int pixel)
Overrides:
getRGB in class ColorModel

getAlpha

public int getAlpha(Object inData)
Overrides:
getAlpha in class ColorModel

getRed

public int getRed(Object inData)
Overrides:
getRed in class ColorModel

getGreen

public int getGreen(Object inData)
Overrides:
getGreen in class ColorModel

getBlue

public int getBlue(Object inData)
Overrides:
getBlue in class ColorModel

getRGB

public int getRGB(Object inData)
Overrides:
getRGB in class ColorModel

coerceData

public ColorModel coerceData(WritableRaster raster,
                             boolean isAlphaPremultiplied)
Overrides:
coerceData in class ColorModel

isCompatibleRaster

public boolean isCompatibleRaster(Raster raster)
Overrides:
isCompatibleRaster in class ColorModel

isCompatibleSampleModel

public boolean isCompatibleSampleModel(SampleModel sm)
Overrides:
isCompatibleSampleModel in class ColorModel


Copyright © 2011. All Rights Reserved.