org.cybertory.MSS
Class PendingRenderedOp

java.lang.Object
  extended byorg.cybertory.MSS.PendingRenderedOp
All Implemented Interfaces:
SelfScaler

public class PendingRenderedOp
extends java.lang.Object
implements SelfScaler

This class is analogous to RenderedOp, but in addition it handles recursive application of pixel size. Once the pixel size is known, the manifestResolution(float) method is called to create a RenderedOp with the appropriate pixel size.


Constructor Summary
PendingRenderedOp(PendingParameterBlockJAI pbjp)
           
PendingRenderedOp(PendingParameterBlockJAI pbjp, java.awt.RenderingHints rh)
           
 
Method Summary
 FImageLayout getLayout()
           
 java.lang.Object getScaled(float pixelSize)
          Returns a scaled version of this object.
 javax.media.jai.RenderedOp manifestResolution(float pixelSize)
          This method invokes the application of pixel size.
 void propagateImageLayout(int sourceNum)
           
 void setImageLayout(FImageLayout imageLayout)
           
 void setNumberOfChannels(int numChannels)
          Configure the number of channels for the output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PendingRenderedOp

public PendingRenderedOp(PendingParameterBlockJAI pbjp)

PendingRenderedOp

public PendingRenderedOp(PendingParameterBlockJAI pbjp,
                         java.awt.RenderingHints rh)
Method Detail

getScaled

public java.lang.Object getScaled(float pixelSize)
Returns a scaled version of this object.

Specified by:
getScaled in interface SelfScaler

getLayout

public FImageLayout getLayout()
Returns:
the image layout of the image

setNumberOfChannels

public void setNumberOfChannels(int numChannels)
Configure the number of channels for the output. This influences the RenderingHints passed to JAI.create.

Parameters:
numChannels - the number of channels desired for the output
Returns:
the image layout of the image

setImageLayout

public void setImageLayout(FImageLayout imageLayout)

propagateImageLayout

public void propagateImageLayout(int sourceNum)

manifestResolution

public javax.media.jai.RenderedOp manifestResolution(float pixelSize)
This method invokes the application of pixel size.

Parameters:
pixelSize - the desired pixel size in microns
Returns:
the image with the requested pixel size manifested.