org.geotools.image.jai
Class CombineDescriptor

java.lang.Object
  extended byjavax.media.jai.OperationDescriptorImpl
      extended byorg.geotools.image.jai.CombineDescriptor
All Implemented Interfaces:
javax.media.jai.OperationDescriptor, javax.media.jai.RegistryElementDescriptor, java.io.Serializable

public class CombineDescriptor
extends javax.media.jai.OperationDescriptorImpl

The operation descriptor for the Combine operation. While this descriptor declares to support 0 RenderedImage sources, an arbitrary amount of sources can really be specified. The "0" should be understood as the minimal number of sources required.

Since:
2.1
Version:
$Id: CombineDescriptor.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Remi Eve, Martin Desruisseaux
See Also:
Serialized Form

Field Summary
static java.lang.String OPERATION_NAME
          The operation name, which is "org.geotools.Combine".
 
Fields inherited from class javax.media.jai.OperationDescriptorImpl
resources, sourceNames, supportedModes
 
Fields inherited from interface javax.media.jai.OperationDescriptor
NO_PARAMETER_DEFAULT
 
Constructor Summary
CombineDescriptor()
          Constructs the descriptor.
 
Method Summary
protected  boolean validateParameters(java.lang.String modeName, java.awt.image.renderable.ParameterBlock param, java.lang.StringBuffer message)
          Returns if the parameters are valids.
protected  boolean validateSources(java.lang.String modeName, java.awt.image.renderable.ParameterBlock param, java.lang.StringBuffer message)
          Returns 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 javax.media.jai.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATION_NAME

public static final java.lang.String OPERATION_NAME
The operation name, which is "org.geotools.Combine".

See Also:
Constant Field Values
Constructor Detail

CombineDescriptor

public CombineDescriptor()
Constructs the descriptor.

Method Detail

validateSources

protected boolean validateSources(java.lang.String modeName,
                                  java.awt.image.renderable.ParameterBlock param,
                                  java.lang.StringBuffer message)
Returns if this operation supports the specified mode, and is capable of handling the given input source(s) for the specified mode.

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(java.lang.String modeName,
                                     java.awt.image.renderable.ParameterBlock param,
                                     java.lang.StringBuffer message)
Returns 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.

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 © GeoTools. All Rights Reserved.