org.geotools.image.palette
Class ColorReductionDescriptor

Object
  extended by OperationDescriptorImpl
      extended by ColorReductionDescriptor
All Implemented Interfaces:
Serializable, OperationDescriptor, RegistryElementDescriptor

public class ColorReductionDescriptor
extends OperationDescriptorImpl

See Also:
Serialized Form

Field Summary
static String OPERATION_NAME
          The operation name, which is "org.geotools.ColorReduction".
 
Fields inherited from class OperationDescriptorImpl
resources, sourceNames, supportedModes
 
Fields inherited from interface OperationDescriptor
NO_PARAMETER_DEFAULT
 
Constructor Summary
ColorReductionDescriptor()
          Constructs the descriptor.
 
Method Summary
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.
 
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
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATION_NAME

public static final String OPERATION_NAME
The operation name, which is "org.geotools.ColorReduction".

See Also:
Constant Field Values
Constructor Detail

ColorReductionDescriptor

public ColorReductionDescriptor()
Constructs the descriptor.

Method Detail

validateSources

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.

Overrides:
validateSources in class OperationDescriptorImpl
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

protected boolean validateParameters(String modeName,
                                     ParameterBlock param,
                                     StringBuffer message)
Returns 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.

Overrides:
validateParameters in class OperationDescriptorImpl
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.


Copyright © 1996-2014 Geotools. All Rights Reserved.