Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.modama.jaiutil.operators
Class MosaicDescriptor  view MosaicDescriptor download MosaicDescriptor.java

java.lang.Object
  extended byOperationDescriptorImpl
      extended byorg.modama.jaiutil.operators.MosaicDescriptor
All Implemented Interfaces:
java.awt.image.renderable.RenderedImageFactory

public class MosaicDescriptor
extends OperationDescriptorImpl
implements java.awt.image.renderable.RenderedImageFactory

A JAI operation descriptor for the Mosaic operation. This operation produces an image from a grid of tile sources, each tile being a separate JAI image. All source images must be the same size and have the same tile size, sample model and color model. The resulting image will have a tile size the same as the sources. The parameters are the number of rows and columns in the grid and a two dimensional array of the source tiles.


Field Summary
private static java.lang.Class[] paramClasses
          The class types for the parameters of the "Mosaic" operation.
private static java.lang.Object[] paramDefaults
          The default parameter values for the "Mosaic" operation when using a ParameterBlockJAI.
private static java.lang.String[] paramNames
           
private static boolean registered
           
private static java.lang.String[][] resources
           
 
Constructor Summary
MosaicDescriptor()
          Construct a MosaicDescriptor.
 
Method Summary
 java.awt.image.RenderedImage create(java.awt.image.renderable.ParameterBlock paramBlock, java.awt.RenderingHints renderHints)
          Creates a MosaicOpImage with the given ParameterBlock if the MosaicOpImage can handle the particular ParameterBlock.
static void register()
           
 boolean validateParameters(java.awt.image.renderable.ParameterBlock paramBlock)
          Checks that all parameters in the ParameterBlock have the correct type before constructing the MosaicOpImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resources

private static final java.lang.String[][] resources

paramNames

private static final java.lang.String[] paramNames

paramClasses

private static final java.lang.Class[] paramClasses
The class types for the parameters of the "Mosaic" operation.


paramDefaults

private static final java.lang.Object[] paramDefaults
The default parameter values for the "Mosaic" operation when using a ParameterBlockJAI.


registered

private static boolean registered
Constructor Detail

MosaicDescriptor

public MosaicDescriptor()
Construct a MosaicDescriptor.

Method Detail

register

public static void register()

create

public java.awt.image.RenderedImage create(java.awt.image.renderable.ParameterBlock paramBlock,
                                           java.awt.RenderingHints renderHints)
Creates a MosaicOpImage with the given ParameterBlock if the MosaicOpImage 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 MosaicOpImage