| java.lang.Object javax.media.jai.OperationDescriptorImpl javax.media.jai.operator.RenderableDescriptor
RenderableDescriptor | public class RenderableDescriptor extends OperationDescriptorImpl (Code) | | An OperationDescriptor describing the "Renderable" operation.
In renderable image mode the "Renderable" operation produces from a
RenderedImage source a RenderableImage
consisting of a "pyramid" of RenderedImage s at progressively
lower resolutions. This operation does not support rendered image mode.
Lower resolution images are produced by invoking the chain of
operations specified via the "downSampler" parameter on the image at the
next higher resolution level of the pyramid. The "downSampler" operation
chain must adhere to the specifications described for the constructors of
the ImageMIPMap class which accept this type of parameter.
The "downSampler" operation chain must reduce the image width and height at
each level of the pyramid. The default operation chain for "downSampler"
is a low pass filtering implemented using a 5x5 separable kernel derived
from the one-dimensional kernel
[0.05 0.25 0.40 0.25 0.05]
followed by downsampling by 2.
The number of levels in the pyramid will be such that the maximum of
the width and height of the lowest resolution pyramid level is less than or
equal to the value of the "maxLowResDim" parameter which must be positive.
The minimum X and Y coordinates and height in rendering-independent
coordinates are supplied by the parameters "minX", "minY", and "height",
respectively. The value of "height" must be positive. It is not
necessary to supply a value for the rendering-independent width as this
is derived by multiplying the supplied height by the aspect ratio (width
divided by height) of the source RenderedImage .
Resource List
Name | Value |
GlobalName | Renderable |
LocalName | Renderable |
Vendor | com.sun.media.jai |
Description | Produces a RenderableImage from a RenderedImage. |
DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/RenderableDescriptor.html |
Version | 1.0 |
arg0Desc | The operation chain used to derive the lower resolution images. |
arg1Desc | The maximum dimension of the lowest resolution pyramid level. |
arg2Desc | The minimum rendering-independent X coordinate of the destination. |
arg3Desc | The minimum rendering-independent Y coordinate of the destination. |
arg4Desc | The rendering-independent height. |
Parameter List
Name | Class Type |
Default Value |
downSampler | RenderedOp |
null |
maxLowResDim | Integer |
64 |
minX | Float |
0.0F |
minY | Float |
0.0F |
height | Float |
1.0F |
See Also: javax.media.jai.ImageMIPMap See Also: javax.media.jai.OperationDescriptor |
Method Summary | |
public static RenderableOp | createRenderable(RenderedImage source0, RenderedOp downSampler, Integer maxLowResDim, Float minX, Float minY, Float height, RenderingHints hints) Produces a RenderableImage from a RenderedImage.
Creates a ParameterBlockJAI from all
supplied arguments except hints and invokes
JAI.createRenderable(StringParameterBlockRenderingHints) .
See Also: JAI See Also: ParameterBlockJAI See Also: RenderableOp Parameters: source0 - RenderedImage source 0. Parameters: downSampler - The operation chain used to derive the lower resolution images.May be null . Parameters: maxLowResDim - The maximum dimension of the lowest resolution pyramid level.May be null . Parameters: minX - The minimum rendering-independent X coordinate of the destination.May be null . Parameters: minY - The minimum rendering-independent Y coordinate of the destination.May be null . Parameters: height - The rendering-independent height.May be null . Parameters: hints - The RenderingHints to use.May be null . | public boolean | isRenderableSupported() Indicates that renderable operation is supported. | public boolean | isRenderedSupported() Indicates that rendered operation is supported. | protected boolean | validateParameters(ParameterBlock args, StringBuffer msg) Validates input parameters in the renderable layer. |
RenderableDescriptor | public RenderableDescriptor()(Code) | | Constructor.
|
createRenderable | public static RenderableOp createRenderable(RenderedImage source0, RenderedOp downSampler, Integer maxLowResDim, Float minX, Float minY, Float height, RenderingHints hints)(Code) | | Produces a RenderableImage from a RenderedImage.
Creates a ParameterBlockJAI from all
supplied arguments except hints and invokes
JAI.createRenderable(StringParameterBlockRenderingHints) .
See Also: JAI See Also: ParameterBlockJAI See Also: RenderableOp Parameters: source0 - RenderedImage source 0. Parameters: downSampler - The operation chain used to derive the lower resolution images.May be null . Parameters: maxLowResDim - The maximum dimension of the lowest resolution pyramid level.May be null . Parameters: minX - The minimum rendering-independent X coordinate of the destination.May be null . Parameters: minY - The minimum rendering-independent Y coordinate of the destination.May be null . Parameters: height - The rendering-independent height.May be null . Parameters: hints - The RenderingHints to use.May be null . The RenderableOp destination. throws: IllegalArgumentException - if source0 is null . |
isRenderableSupported | public boolean isRenderableSupported()(Code) | | Indicates that renderable operation is supported.
|
isRenderedSupported | public boolean isRenderedSupported()(Code) | | Indicates that rendered operation is supported.
|
Methods inherited from javax.media.jai.OperationDescriptorImpl | public boolean arePropertiesSupported()(Code)(Java Doc) protected static Class getDefaultSourceClass(String modeName)(Code)(Java Doc) public Class getDestClass(String modeName)(Code)(Java Doc) public Class getDestClass()(Code)(Java Doc) public Object getInvalidRegion(String modeName, ParameterBlock oldParamBlock, RenderingHints oldHints, ParameterBlock newParamBlock, RenderingHints newHints, OperationNode node)(Code)(Java Doc) public String getName()(Code)(Java Doc) public int getNumParameters()(Code)(Java Doc) public int getNumSources()(Code)(Java Doc) public Class[] getParamClasses()(Code)(Java Doc) public Object getParamDefaultValue(int index)(Code)(Java Doc) public Object[] getParamDefaults()(Code)(Java Doc) public Number getParamMaxValue(int index)(Code)(Java Doc) public Number getParamMinValue(int index)(Code)(Java Doc) public String[] getParamNames()(Code)(Java Doc) public ParameterListDescriptor getParameterListDescriptor(String modeName)(Code)(Java Doc) public PropertyGenerator[] getPropertyGenerators(String modeName)(Code)(Java Doc) public PropertyGenerator[] getPropertyGenerators()(Code)(Java Doc) public Class getRenderableDestClass()(Code)(Java Doc) public Class[] getRenderableSourceClasses()(Code)(Java Doc) public ResourceBundle getResourceBundle(Locale locale)(Code)(Java Doc) public String[][] getResources(Locale locale)(Code)(Java Doc) public Class[] getSourceClasses(String modeName)(Code)(Java Doc) public Class[] getSourceClasses()(Code)(Java Doc) public String[] getSourceNames()(Code)(Java Doc) public String[] getSupportedModes()(Code)(Java Doc) public boolean isImmediate()(Code)(Java Doc) public boolean isModeSupported(String modeName)(Code)(Java Doc) public boolean isRenderableSupported()(Code)(Java Doc) public boolean isRenderedSupported()(Code)(Java Doc) protected static Class[][] makeDefaultSourceClassList(String[] supportedModes, int numSources)(Code)(Java Doc) public boolean validateArguments(String modeName, ParameterBlock args, StringBuffer msg)(Code)(Java Doc) public boolean validateArguments(ParameterBlock args, StringBuffer msg)(Code)(Java Doc) protected boolean validateParameters(String modeName, ParameterBlock args, StringBuffer msg)(Code)(Java Doc) protected boolean validateParameters(ParameterBlock args, StringBuffer msg)(Code)(Java Doc) public boolean validateRenderableArguments(ParameterBlock args, StringBuffer msg)(Code)(Java Doc) protected boolean validateRenderableSources(ParameterBlock args, StringBuffer msg)(Code)(Java Doc) protected boolean validateSources(String modeName, ParameterBlock args, StringBuffer msg)(Code)(Java Doc) protected boolean validateSources(ParameterBlock args, StringBuffer msg)(Code)(Java Doc)
|
|
|