public class ExpressionDescriptor
extends javax.media.jai.OperationDescriptorImpl
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.
Constructor and Description |
---|
ExpressionDescriptor()
Constructor.
|
Modifier and Type | Method and 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 |
validateParameters(String modeName,
ParameterBlock args,
StringBuffer message)
Validates the parameters.
|
protected boolean |
validateSources(String modeName,
ParameterBlock args,
StringBuffer message)
Validates the sources.
|
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
protected boolean validateSources(String modeName, ParameterBlock args, StringBuffer message)
validateSources
in class javax.media.jai.OperationDescriptorImpl
protected boolean validateParameters(String modeName, ParameterBlock args, StringBuffer message)
validateParameters
in class javax.media.jai.OperationDescriptorImpl
public static javax.media.jai.RenderedOp create(Map<String,RenderedImage> sources, int dataType, String expression, ExpressionCompilerConfig compilerConfig, RenderingHints hints)
Creates a ParameterBlockJAI
from all
supplied arguments except hints
and invokes
JAI.create(String,ParameterBlock,RenderingHints)
.
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
.RenderedOp
destination.IllegalArgumentException
- if expression
is invalid
.Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.