public class ColorIndexerDescriptor
extends javax.media.jai.OperationDescriptorImpl
ColorIndexer
Modifier and Type | Field and Description |
---|---|
static String |
OPERATION_NAME
The operation name, which is "ColorIndexer" .
|
Constructor and Description |
---|
ColorIndexerDescriptor()
Constructs the descriptor.
|
Modifier and Type | Method and Description |
---|---|
static javax.media.jai.RenderedOp |
create(RenderedImage source,
ColorIndexer indexer,
javax.media.jai.ROI roi,
Range nodata,
Integer destNoData,
RenderingHints hints)
Create a new
RenderedOp instance based on the "ColorIndexer" operation |
protected boolean |
validateParameters(String modeName,
ParameterBlock param,
StringBuffer message)
Returns
true if the parameters are valids. |
protected boolean |
validateSources(String modeName,
ParameterBlock param,
StringBuffer message)
Returns
true if this operation supports the specified mode, and is capable of handling the given input source(s) for the specified
mode. |
arePropertiesSupported, getDefaultSourceClass, getDestClass, getDestClass, getInvalidRegion, getName, getNumParameters, getNumSources, getParamClasses, getParamDefaults, getParamDefaultValue, getParameterListDescriptor, getParamMaxValue, getParamMinValue, getParamNames, getPropertyGenerators, getPropertyGenerators, getRenderableDestClass, getRenderableSourceClasses, getResourceBundle, getResources, getSourceClasses, getSourceClasses, getSourceNames, getSupportedModes, isImmediate, isModeSupported, isRenderableSupported, isRenderedSupported, makeDefaultSourceClassList, validateArguments, validateArguments, validateParameters, validateRenderableArguments, validateRenderableSources, validateSources
public static final String OPERATION_NAME
public ColorIndexerDescriptor()
protected boolean validateSources(String modeName, ParameterBlock param, StringBuffer message)
true
if this operation supports the specified mode, and is capable of handling the given input source(s) for the specified
mode.validateSources
in class javax.media.jai.OperationDescriptorImpl
modeName
- The mode name (usually "Rendered").param
- The parameter block for the operation to performs.message
- A buffer for formatting an error message if any.protected boolean validateParameters(String modeName, ParameterBlock param, StringBuffer message)
true
if the parameters are valids. This implementation check that the number of bands in the source src1 is equals to the
number of bands of source src2.validateParameters
in class javax.media.jai.OperationDescriptorImpl
modeName
- The mode name (usually "Rendered").param
- The parameter block for the operation to performs.message
- A buffer for formatting an error message if any.public static javax.media.jai.RenderedOp create(RenderedImage source, ColorIndexer indexer, javax.media.jai.ROI roi, Range nodata, Integer destNoData, RenderingHints hints)
RenderedOp
instance based on the "ColorIndexer" operationsource
- Input imageindexer
- ColorIndexer
instance to use for the operationroi
- Input ROI
used for reducing computation areanodata
- NoData Range
used for masking NoData valuesdestNoData
- Value to set for the backgroundhints
- Optional configuration hintsRenderedOp
instance after executing ColorIndexer operationCopyright © 2006–2018 GeoSolutions. All rights reserved.