org.deegree.coverage.raster.utils
Class FloatColorModel
java.lang.Object
java.awt.image.ColorModel
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 $
Constructor Summary |
FloatColorModel(byte[] noData)
Constructs a float colormodel with the given no data value. |
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 |
FloatColorModel
public FloatColorModel(byte[] noData)
- Constructs a float colormodel with the given no data value.
- Parameters:
noData
-
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.