org.cybertory.MSS
Class PendingParameterBlockJAI

java.lang.Object
  extended byjava.awt.image.renderable.ParameterBlock
      extended byjavax.media.jai.ParameterBlockJAI
          extended byorg.cybertory.MSS.PendingParameterBlockJAI
All Implemented Interfaces:
java.lang.Cloneable, javax.media.jai.ParameterList, java.io.Serializable

public class PendingParameterBlockJAI
extends javax.media.jai.ParameterBlockJAI

A version of ParameterBlockJAI that handles recursive scaling to pending pixel size of parameter and source images.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.image.renderable.ParameterBlock
parameters, sources
 
Constructor Summary
PendingParameterBlockJAI(java.lang.String operatorName)
           
 
Method Summary
 javax.media.jai.ImageLayout getSourceImageLayout(int sourceNum)
          Get the ImageLayout object that describes the source image.
 javax.media.jai.ParameterBlockJAI manifestResolution(float pixelSize)
          This method applies the pixel size recursively to all parameters and image sources.
 void setParameterDivideToScale(java.lang.String paramName)
          A call to this method sets it up so that the given named parameter is divided by the pixel size when it becomes available.
 void setParameterScaler(java.lang.String paramName, JAIParamScaler scaler)
          Assign a JAIParamScaler to scale a particular parameter when the pixel size is known.
 void setPixelSizeParamName(java.lang.String paramName)
          This sets the specified parameter (by name) to be set to the pixel size once its known.
 
Methods inherited from class javax.media.jai.ParameterBlockJAI
add, clone, getBooleanParameter, getByteParameter, getCharParameter, getDoubleParameter, getFloatParameter, getIntParameter, getLongParameter, getMode, getObjectParameter, getOperationDescriptor, getParamClasses, getParameterListDescriptor, getShortParameter, indexOf, indexOfParam, indexOfSource, set, set, set, set, set, set, set, set, set, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameters, setSource
 
Methods inherited from class java.awt.image.renderable.ParameterBlock
add, add, add, add, add, add, add, addSource, getByteParameter, getCharParameter, getDoubleParameter, getFloatParameter, getIntParameter, getLongParameter, getNumParameters, getNumSources, getObjectParameter, getParameters, getRenderableSource, getRenderedSource, getShortParameter, getSource, getSources, removeParameters, removeSources, set, set, set, set, set, set, set, setSource, setSources, shallowClone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PendingParameterBlockJAI

public PendingParameterBlockJAI(java.lang.String operatorName)
Method Detail

manifestResolution

public javax.media.jai.ParameterBlockJAI manifestResolution(float pixelSize)
This method applies the pixel size recursively to all parameters and image sources.

Parameters:
pixelSize - the pixel size in microns (defines resolution)

setPixelSizeParamName

public void setPixelSizeParamName(java.lang.String paramName)
This sets the specified parameter (by name) to be set to the pixel size once its known.

Parameters:
paramName - the name of the parameter

setParameterDivideToScale

public void setParameterDivideToScale(java.lang.String paramName)
A call to this method sets it up so that the given named parameter is divided by the pixel size when it becomes available.


getSourceImageLayout

public javax.media.jai.ImageLayout getSourceImageLayout(int sourceNum)
Get the ImageLayout object that describes the source image.

Parameters:
sourceNum - the index of the image source
Returns:
the ImageLayout for the specified source

setParameterScaler

public void setParameterScaler(java.lang.String paramName,
                               JAIParamScaler scaler)
Assign a JAIParamScaler to scale a particular parameter when the pixel size is known.