Class ExpressionDescriptor

java.lang.Object
javax.media.jai.OperationDescriptorImpl
com.bc.ceres.jai.operator.ExpressionDescriptor
All Implemented Interfaces:
Serializable, javax.media.jai.OperationDescriptor, javax.media.jai.RegistryElementDescriptor

public class ExpressionDescriptor extends javax.media.jai.OperationDescriptorImpl
An OperationDescriptor describing the "Expression" operation.

The Expression operation creates a single-banded, tiled rendered image, where all the samples are computed from a given mathematical (Java) expression.

See Also:
  • Field Summary

    Fields inherited from interface javax.media.jai.OperationDescriptor

    NO_PARAMETER_DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    static javax.media.jai.RenderedOp
    create(Map<String,RenderedImage> sources, int dataType, String expression, ExpressionCompilerConfig compilerConfig, RenderingHints hints)
    Creates an expression image.
    protected boolean
    Validates the parameters.
    protected boolean
    Validates the sources.

    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
  • Constructor Details

    • ExpressionDescriptor

      public ExpressionDescriptor()
      Constructor.
  • Method Details

    • validateSources

      protected boolean validateSources(String modeName, ParameterBlock args, StringBuffer message)
      Validates the sources.
      Overrides:
      validateSources in class javax.media.jai.OperationDescriptorImpl
    • validateParameters

      protected boolean validateParameters(String modeName, ParameterBlock args, StringBuffer message)
      Validates the parameters.
      Overrides:
      validateParameters in class javax.media.jai.OperationDescriptorImpl
    • create

      public static javax.media.jai.RenderedOp create(Map<String,RenderedImage> sources, int dataType, String expression, ExpressionCompilerConfig compilerConfig, RenderingHints hints)
      Creates an expression image.

      Creates a ParameterBlockJAI from all supplied arguments except hints and invokes JAI.create(String,ParameterBlock,RenderingHints).

      Parameters:
      sources - The name-to-source map.
      dataType - The destination image's data type.
      expression - The mathematical expression.
      compilerConfig - The configuration for the Java expression compiler.
      hints - The RenderingHints to use. May be null.
      Returns:
      The RenderedOp destination.
      Throws:
      IllegalArgumentException - if expression is invalid.