Package org.geotools.image.palette
Class ColorReductionDescriptor
Object
OperationDescriptorImpl
ColorReductionDescriptor
- All Implemented Interfaces:
Serializable,OperationDescriptor,RegistryElementDescriptor
public class ColorReductionDescriptor
extends OperationDescriptorImpl
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe operation name, which is "org.geotools.ColorReduction".Fields inherited from class OperationDescriptorImpl
resources, sourceNames, supportedModesFields inherited from interface OperationDescriptor
NO_PARAMETER_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvalidateParameters(String modeName, ParameterBlock param, StringBuffer message) Returnstrueif the parameters are valids.protected booleanvalidateSources(String modeName, ParameterBlock param, StringBuffer message) Returnstrueif this operation supports the specified mode, and is capable of handling the given input source(s) for the specified mode.Methods inherited from class OperationDescriptorImpl
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
-
Field Details
-
OPERATION_NAME
The operation name, which is "org.geotools.ColorReduction".- See Also:
-
-
Constructor Details
-
ColorReductionDescriptor
public ColorReductionDescriptor()Constructs the descriptor.
-
-
Method Details
-
validateSources
Returnstrueif this operation supports the specified mode, and is capable of handling the given input source(s) for the specified mode.- Overrides:
validateSourcesin classOperationDescriptorImpl- Parameters:
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.
-
validateParameters
Returnstrueif 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.- Overrides:
validateParametersin classOperationDescriptorImpl- Parameters:
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.
-