Test
Class SampleDescriptor

java.lang.Object
  extended by javax.media.jai.OperationDescriptorImpl
      extended by Test.SampleDescriptor
All Implemented Interfaces:
java.awt.image.renderable.RenderedImageFactory, java.io.Serializable, javax.media.jai.OperationDescriptor, javax.media.jai.RegistryElementDescriptor

public class SampleDescriptor
extends javax.media.jai.OperationDescriptorImpl
implements java.awt.image.renderable.RenderedImageFactory

A single class that is both an OperationDescriptor and a RenderedImageFactory along with the one OpImage it is capable of creating. The operation implemented is a variation on threshold, although the code may be used as a template for a variety of other point operations.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.media.jai.OperationDescriptor
NO_PARAMETER_DEFAULT
 
Constructor Summary
SampleDescriptor()
          Constructor.
 
Method Summary
 java.awt.image.RenderedImage create(java.awt.image.renderable.ParameterBlock paramBlock, java.awt.RenderingHints renderHints)
          Creates a SampleOpImage with the given ParameterBlock if the SampleOpImage can handle the particular ParameterBlock.
 boolean validateParameters(java.awt.image.renderable.ParameterBlock paramBlock)
          Checks that all parameters in the ParameterBlock have the correct type before constructing the SampleOpImage
 
Methods inherited from class javax.media.jai.OperationDescriptorImpl
arePropertiesSupported, 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, validateArguments, validateArguments, validateRenderableArguments
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleDescriptor

public SampleDescriptor()
Constructor.

Method Detail

create

public java.awt.image.RenderedImage create(java.awt.image.renderable.ParameterBlock paramBlock,
                                           java.awt.RenderingHints renderHints)
Creates a SampleOpImage with the given ParameterBlock if the SampleOpImage can handle the particular ParameterBlock.

Specified by:
create in interface java.awt.image.renderable.RenderedImageFactory

validateParameters

public boolean validateParameters(java.awt.image.renderable.ParameterBlock paramBlock)
Checks that all parameters in the ParameterBlock have the correct type before constructing the SampleOpImage