|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.jai.JAI
A convenience class for instantiating operations.
This class allows programmers to use the syntax:
import javax.media.jai.JAI; RenderedOp im = JAI.create("convolve", paramBlock, renderHints);to create new images or collections by applying operators. The
create()
method returns a RenderedOp
encapsulating the operation name, parameter block, and rendering
hints. Additionally, it performs validity checking on the operation
parameters. Programmers may also refer to
JAI.createCollection("opname", paramBlock, renderHints)
,
JAI.createRenderable("opname", paramBlock, renderHints)
, and
JAI.createRenderableCollection("opname", paramBlock,
renderHints)
.
If the OperationDescriptor
associated with the
named operation returns true
from its
isImmediate()
method, the JAI.createNS()
method will ask the RenderedOp
it constructs to render
itself immediately. If this rendering is null
,
createNS()
will itself return null
rather than returning an instance of RenderedOp
as it
normally does.
It is possible to create new instances of theJAI
class in
order to control each instance's registry, tile cache, and tile scheduler
individually. Most users will want to use only the static methods
of this class, which perform all operations on a default instance,
which in turn makes use of a default registry. To create a new
image or collection on a non-default JAI
instance,
the createNS()
and createCollectionNS
(NS being short for "non-static") methods are used.
The JAI
class contains convenience methods for a
number of common argument list formats. These methods perform the
work of constructing a ParameterBlock
automatically.
The convenience methods are available only in static
form and make use of the default instance. When operating with a
specific instance, the general, non-static functions
createNS()
and createCollectionNS()
should be used. All of the convenience methods operate by calling
createNS()
on the default JAI
instance,
and thus inherit the semantics of that method with regard to immediate
rendering.
The registry being used by a particular instance may be
retrieved or set using the getOperationRegistry()
and
setOperationRegistry()
methods, respectively. Only
advanced users should attempt to set the registry. The tile cache and
tile scheduler being used by a particular instance may likewise be set
or retrieved using the methods setTileCache()
,
setTileScheduler()
, getTileCache()
, or
getTileScheduler()
.
Each instance of JAI
contains a set of rendering
hints which will be used for all image or collection creations.
These hints are merged with any hints supplied to the
create
method; directly supplied hints take precedence
over the common hints. When a new JAI
instance is
constructed, its hints are initialized to a copy of the hints
associated with the default instance. When the default instance is
constructed, hints for the default registry, tile cache, and tile
scheduler are added to the set of common rendering hints. Similarly,
invoking setOperationRegistry()
, setTileCache()
,
or setTileScheduler()
on a JAI
instance will
cause the respective entity to be added to the common rendering hints.
The hints associated with any instance, including the default instance,
may be manipulated using the getRenderingHints()
,
setRenderingHints()
, and clearRenderingHints()
methods.
OperationRegistry
,
RenderingHints
,
TileScheduler
,
TileCache
Field Summary | |
static RenderingHints.Key |
KEY_BORDER_EXTENDER
Key for BorderExtender object values. |
static RenderingHints.Key |
KEY_DEFAULT_COLOR_MODEL_ENABLED
Key for enabling default ColorModel initialization
when a valid ColorModel may not be derived by
inheritance. |
static RenderingHints.Key |
KEY_DEFAULT_COLOR_MODEL_METHOD
Key for specifying a method to be used as for default ColorModel initialization. |
static RenderingHints.Key |
KEY_DEFAULT_RENDERING_SIZE
Key for the dimensions of a RenderedImage created by
invoking createDefaultRendering() on a node of type
RenderableOp in a renderable processing chain. |
static RenderingHints.Key |
KEY_IMAGE_LAYOUT
Key for ImageLayout object values. |
static RenderingHints.Key |
KEY_INTERPOLATION
Key for Interpolation object values. |
static RenderingHints.Key |
KEY_NEGOTIATION_PREFERENCES
Key for the negotiation preferences to be used to negotiate capabilities to be used in the remote communication. |
static RenderingHints.Key |
KEY_NUM_RETRIES
Key for the number of retries to be used for dealing with network errors during remote imaging. |
static RenderingHints.Key |
KEY_OPERATION_BOUND
Key for Integer object values representing whether
the operation is compute, network, or I/O bound. |
static RenderingHints.Key |
KEY_OPERATION_REGISTRY
Key for OperationRegistry object values. |
static RenderingHints.Key |
KEY_RETRY_INTERVAL
Key for the retry interval value to be used for dealing with network errors during remote imaging. |
static RenderingHints.Key |
KEY_SERIALIZE_DEEP_COPY
Key for specifying whether a deep copy of the image data should be used when serializing images. |
static RenderingHints.Key |
KEY_TILE_CACHE
Key for TileCache object values. |
static RenderingHints.Key |
KEY_TILE_CACHE_METRIC
Key for Tile ordering metric The common RenderingHints do not contain a default
hint corresponding to this key. |
static RenderingHints.Key |
KEY_TILE_CODEC_FORMAT
Key for specifying the default format to be used for tile serialization via TileCodec s. |
static RenderingHints.Key |
KEY_TILE_DECODING_PARAM
Key for specifying the default decoding parameters to be used for tile serialization via TileCodec s. |
static RenderingHints.Key |
KEY_TILE_ENCODING_PARAM
Key for specifying the default encoding parameters to be used for tile serialization via TileCodec s. |
static RenderingHints.Key |
KEY_TILE_SCHEDULER
Key for TileScheduler object values. |
Constructor Summary | |
JAI()
Returns a new instance of the JAI class. |
Method Summary | |
void |
clearRenderingHints()
Clears the RenderingHints associated with this
JAI instance. |
static RenderedOp |
create(String opName,
Collection srcCol)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
int param1,
int param2,
Object param3)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
Object param)
Creates a RenderedOp that takes 1 Object parameter. |
static RenderedOp |
create(String opName,
Object param1,
int param2)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
Object param1,
int param2,
Object param3,
int param4)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
Object param1,
Object param2)
Creates a RenderedOp that takes 2 Object parameters. |
static RenderedOp |
create(String opName,
Object param1,
Object param2,
Object param3)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
Object param1,
Object param2,
Object param3,
Object param4)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
ParameterBlock args)
Creates a RenderedOp with null
rendering hints. |
static RenderedOp |
create(String opName,
ParameterBlock args,
RenderingHints hints)
Creates a RenderedOp which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock , and applying the specified
hints to the destination. |
static RenderedOp |
create(String opName,
RenderedImage src)
Creates a RenderedOp that takes 1 RenderedImage source. |
static RenderedOp |
create(String opName,
RenderedImage src,
float param1,
float param2,
float param3,
float param4,
Object param5)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
float param1,
float param2,
float param3,
Object param4)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
float param1,
float param2,
Object param3)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
float param1,
int param2,
float param3,
float param4,
Object param5)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
int param)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
int param1,
int param2,
int param3,
int param4)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
int param1,
int param2,
int param3,
int param4,
int param5,
Object param6)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
Object param)
Creates a RenderedOp that takes 1
RenderedImage source and
1 Object parameter. |
static RenderedOp |
create(String opName,
RenderedImage src,
Object param1,
float param2)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
Object param1,
int param2,
int param3)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
Object param1,
Object param2)
Creates a RenderedOp that takes 1
RenderedImage source
and 2 Object parameters. |
static RenderedOp |
create(String opName,
RenderedImage src,
Object param1,
Object param2,
int param3,
int param4)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
Object param1,
Object param2,
Object param3)
Creates a RenderedOp that takes 1
RenderedImage source
and 3 Object parameters. |
static RenderedOp |
create(String opName,
RenderedImage src,
Object param1,
Object param2,
Object param3,
Object param4)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
Object param1,
Object param2,
Object param3,
Object param4,
Object param5)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src,
Object param1,
Object param2,
Object param3,
Object param4,
Object param5,
Object param6)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static RenderedOp |
create(String opName,
RenderedImage src1,
RenderedImage src2)
Creates a RenderedOp that takes 2
RenderedImage sources. |
static RenderedOp |
create(String opName,
RenderedImage src1,
RenderedImage src2,
Object param1,
Object param2,
Object param3,
Object param4)
Deprecated. as of JAI 1.1. Instead use create(String,ParameterBlock) . |
static Collection |
createCollection(String opName,
ParameterBlock args)
Creates a Collection with null
rendering hints. |
static Collection |
createCollection(String opName,
ParameterBlock args,
RenderingHints hints)
Creates a Collection which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock , and applying the specified
hints to the destination. |
Collection |
createCollectionNS(String opName,
ParameterBlock args,
RenderingHints hints)
Creates a Collection which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock , and applying the specified
hints to the destination. |
RenderedOp |
createNS(String opName,
ParameterBlock args,
RenderingHints hints)
Creates a RenderedOp which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock , and applying the specified
hints to the destination. |
static RenderableOp |
createRenderable(String opName,
ParameterBlock args)
Creates a RenderableOp that represents the named
operation, using the source(s) and/or parameter(s) specified
in the ParameterBlock . |
static RenderableOp |
createRenderable(String opName,
ParameterBlock args,
RenderingHints hints)
Creates a RenderableOp that represents the named
operation, using the source(s) and/or parameter(s) specified
in the ParameterBlock . |
static Collection |
createRenderableCollection(String opName,
ParameterBlock args)
Creates a Collection which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock . |
static Collection |
createRenderableCollection(String opName,
ParameterBlock args,
RenderingHints hints)
Creates a Collection which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock . |
Collection |
createRenderableCollectionNS(String opName,
ParameterBlock args)
Deprecated. as of JAI 1.1 in favor of createRenderableCollectionNS(String,ParameterBlock,RenderingHints) . |
Collection |
createRenderableCollectionNS(String opName,
ParameterBlock args,
RenderingHints hints)
Creates a Collection which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock . |
RenderableOp |
createRenderableNS(String opName,
ParameterBlock args)
Deprecated. as of JAI 1.1 in favor of createRenderableNS(String,ParameterBlock,RenderingHints) . |
RenderableOp |
createRenderableNS(String opName,
ParameterBlock args,
RenderingHints hints)
Creates a RenderableOp that represents the named
operation, using the source(s) and/or parameter(s) specified
in the ParameterBlock . |
static TileCache |
createTileCache()
Constructs a TileCache with the default memory
capacity in bytes. |
static TileCache |
createTileCache(int tileCapacity,
long memCapacity)
Deprecated. as of JAI 1.1 Refer to createTileCache(long memCapacity). |
static TileCache |
createTileCache(long memCapacity)
Constructs a TileCache with the given memory capacity
in bytes. |
static TileScheduler |
createTileScheduler()
Constructs a TileScheduler with the default parallelism
and priorities. |
static void |
disableDefaultTileCache()
Disable use of default tile cache. |
static void |
enableDefaultTileCache()
Enable use of default tile cache. |
static String |
getBuildVersion()
Returns JAI version information as a String |
static JAI |
getDefaultInstance()
Returns the default JAI instance. |
static Dimension |
getDefaultRenderingSize()
Retrieves a copy of the default rendering size. |
static Dimension |
getDefaultTileSize()
Retrieves the clone of the default tile dimensions. |
OperationRegistry |
getOperationRegistry()
Returns the OperationRegistry being used by
thisJAI instance. |
Object |
getRenderingHint(RenderingHints.Key key)
Returns the hint value associated with a given key in this JAI instance, or null
if no value is associated with the given key. |
RenderingHints |
getRenderingHints()
Returns the RenderingHints associated with this
JAI instance. |
TileCache |
getTileCache()
Returns the TileCache being used by thisJAI instance. |
TileScheduler |
getTileScheduler()
Returns the TileScheduler being used by thisJAI instance. |
void |
removeRenderingHint(RenderingHints.Key key)
Removes the hint value associated with a given key in this JAI instance. |
static void |
setDefaultRenderingSize(Dimension defaultSize)
Sets the default size of the rendering created by invoking createDefaultRendering() on a RenderableOp . |
static void |
setDefaultTileSize(Dimension tileDimensions)
Sets the default tile dimensions to the clone of the provided parameter. |
void |
setOperationRegistry(OperationRegistry operationRegistry)
Sets the OperationRegistry to be used by thisJAI instance. |
void |
setRenderingHint(RenderingHints.Key key,
Object value)
Sets the hint value associated with a given key in this JAI instance. |
void |
setRenderingHints(RenderingHints hints)
Sets the RenderingHints associated with this
JAI instance. |
void |
setTileCache(TileCache tileCache)
Sets the TileCache to be used by thisJAI
instance. |
void |
setTileScheduler(TileScheduler tileScheduler)
Sets the TileScheduler to be used by thisJAI
instance. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static RenderingHints.Key KEY_IMAGE_LAYOUT
ImageLayout
object values.
The common RenderingHints
do not contain a default
hint corresponding to this key.public static RenderingHints.Key KEY_INTERPOLATION
Interpolation
object values.
The common RenderingHints
do not contain a default
hint corresponding to this key.public static RenderingHints.Key KEY_OPERATION_REGISTRY
OperationRegistry
object values.
The common RenderingHints
by default contain a hint
corresponding to this key the value of which is equal to the value
returned by getOperationRegistry()
. The hint is
automatically set by setOperationRegistry()
.public static RenderingHints.Key KEY_OPERATION_BOUND
Integer
object values representing whether
the operation is compute, network, or I/O bound. The values
come from the constants OpImage.OP_COMPUTE_BOUND
,
OpImage.OP_IO_BOUND
, and
OpImage.OP_NETWORK_BOUND
.
The common RenderingHints
do not contain a default
hint corresponding to this key.public static RenderingHints.Key KEY_BORDER_EXTENDER
BorderExtender
object values.
The common RenderingHints
do not contain a default
hint corresponding to this key.public static RenderingHints.Key KEY_TILE_CACHE
TileCache
object values.
The common RenderingHints
by default contain a hint
corresponding to this key the value of which is equal to the value
returned by getTileCache()
. The hint is
automatically set by setTileCache()
.public static RenderingHints.Key KEY_TILE_CACHE_METRIC
RenderingHints
do not contain a default
hint corresponding to this key.public static RenderingHints.Key KEY_TILE_SCHEDULER
TileScheduler
object values.
The common RenderingHints
by default contain a hint
corresponding to this key the value of which is equal to the value
returned by getTileScheduler()
. The hint is
automatically set by setTileScheduler()
.public static RenderingHints.Key KEY_DEFAULT_COLOR_MODEL_ENABLED
ColorModel
initialization
when a valid ColorModel
may not be derived by
inheritance. The corresponding object must be a Boolean
.
The common RenderingHints
do not contain a default
hint corresponding to this key.public static RenderingHints.Key KEY_DEFAULT_COLOR_MODEL_METHOD
ColorModel
initialization. The corresponding object
must be a java.lang.reflect.Method
which is static
and accepts a single SampleModel
parameter and returns a
ColorModel
or null
.
The common RenderingHints
do not contain a default
hint corresponding to this key.public static final RenderingHints.Key KEY_DEFAULT_RENDERING_SIZE
RenderedImage
created by
invoking createDefaultRendering()
on a node of type
RenderableOp
in a renderable processing chain. The
type of the associated value is java.awt.Dimension
.public static RenderingHints.Key KEY_SERIALIZE_DEEP_COPY
Boolean
.
The common RenderingHints
do not contain a default
hint corresponding to this key.public static RenderingHints.Key KEY_TILE_CODEC_FORMAT
TileCodec
s. The corresponding
object must be a String
.
The common RenderingHints
do not contain a default
hint corresponding to this key.public static RenderingHints.Key KEY_TILE_ENCODING_PARAM
TileCodec
s. The corresponding
object must be a TileCodecParameterList
.
The common RenderingHints
do not contain a default
hint corresponding to this key.public static RenderingHints.Key KEY_TILE_DECODING_PARAM
TileCodec
s. The corresponding
object must be a TileCodecParameterList
.
The common RenderingHints
do not contain a default
hint corresponding to this key.public static RenderingHints.Key KEY_RETRY_INTERVAL
Integer
.
The common RenderingHints
do not contain a default
hint corresponding to this key.RemoteJAI
public static RenderingHints.Key KEY_NUM_RETRIES
Integer
.
The common RenderingHints
do not contain a default
hint corresponding to this key.RemoteJAI
public static RenderingHints.Key KEY_NEGOTIATION_PREFERENCES
NegotiableCapabilitySet
.
The common RenderingHints
do not contain a default
hint corresponding to this key.RemoteJAI
Constructor Detail |
public JAI()
JAI
class. The
OperationRegistry
, TileScheduler
, and
TileCache
will initially be references to those of
the default instance. The rendering hints will be set to a
clone of those of the default instance.Method Detail |
public static final String getBuildVersion()
String
public static final void disableDefaultTileCache()
public static final void enableDefaultTileCache()
public static final void setDefaultTileSize(Dimension tileDimensions)
null
there are no default dimensions.tileDimensions
- The default tile dimensions or null
.IllegalArgumentException
- if
tileDimensions
is non-null
and
has non-positive width or height.public static final Dimension getDefaultTileSize()
null
there are no default dimensions set.null
.public static final void setDefaultRenderingSize(Dimension defaultSize)
createDefaultRendering()
on a RenderableOp
.
This default size may be overruled by setting a hint with key
KEY_DEFAULT_RENDERING_SIZE
on the node.
If null
there are no default dimensions.
Either dimension may be non-positive in which case the other
dimension and the renderable aspect ratio will be used to compute
the rendered image size. The intial value of this setting is
new Dimension(0, 512)which produces a default rendering of height 512 and width 512*aspect_ratio.
defaultSize
- The default rendering size or null
.IllegalArgumentException
- if
defaultSize
is non-null
and
both the width and height are non-positive.public static final Dimension getDefaultRenderingSize()
null
there is no default size set.null
.public static JAI getDefaultInstance()
JAI
instance. This instance is used
by all of the static methods of this class. It uses the default
OperationRegistry
and, in the Sun Microsystems, Inc.
implementation, the Sun implementations of TileCache
and
TileScheduler
. The RenderingHints
will
contain hints only for these three entities.
Unless otherwise changed through a setOperationRegistry
the OperationRegistry
used by the default
instance is thread-safe.
public OperationRegistry getOperationRegistry()
OperationRegistry
being used by
thisJAI
instance.
Unless otherwise changed through a setOperationRegistry
the OperationRegistry
returned by
getDefaultInstance().getOperationRegistry()
is thread-safe.
public void setOperationRegistry(OperationRegistry operationRegistry)
OperationRegistry
to be used by thisJAI
instance.operationRegistry
is null
.public TileScheduler getTileScheduler()
TileScheduler
being used by thisJAI
instance.public void setTileScheduler(TileScheduler tileScheduler)
TileScheduler
to be used by thisJAI
instance. The
tileScheduler
parameter will be added to the
RenderingHints
of this JAI
instance.tileScheduler
is null
.public TileCache getTileCache()
TileCache
being used by thisJAI
instance.public void setTileCache(TileCache tileCache)
TileCache
to be used by thisJAI
instance. The
tileCache
parameter will be added to the
RenderingHints
of this JAI
instance.tileCache
is null
.public static TileCache createTileCache(int tileCapacity, long memCapacity)
TileCache
with the given memory capacity in bytes. Users may supply an
instance of TileCache
to an operation by
supplying a RenderingHint
with a
JAI.KEY_TILE_CACHE key and the desired TileCache
instance as its value. Note that the absence of a tile cache
hint will result in the use of the TileCache
belonging to the defaultJAI
instance. To force an operation
not to perform caching, a TileCache
instance with
a tile capacity of 0 may be used.
An exception will be thrown if memCapacity is negative.
Attempting to set either value larger than the JVM size may result in an
OutOfMemory exception.public static TileCache createTileCache(long memCapacity)
TileCache
with the given memory capacity
in bytes. Users may supply an instance of TileCache
to an operation by supplying a RenderingHint
with a
JAI.KEY_TILE_CACHE key and the desired TileCache
instance as its value. Note that the absence of a tile cache
hint will result in the use of the TileCache
belonging to the defaultJAI
instance. To force an operation
not to perform caching, a TileCache
instance with
a tile capacity of 0 may be used.
An exception will be thrown if memCapacity is negative.
Attempting to set either value larger than the JVM size may result in an
OutOfMemory exception.public static TileCache createTileCache()
TileCache
with the default memory
capacity in bytes. Users may supply an instance of
TileCache
to an operation by
supplying a RenderingHint
with a
JAI.KEY_TILE_CACHE key and the desired TileCache
instance as its value. Note that the absence of a tile cache
hint will result in the use of the TileCache
belonging to the defaultJAI
instance. To force an operation
not to perform caching, a TileCache
instance with
a tile capacity of 0 may be used.public static TileScheduler createTileScheduler()
TileScheduler
with the default parallelism
and priorities.
In the Sun Microsystems reference implementation of TileScheduler
the default parallelism is 2, default priority is
THREAD.NORM_PRIORITY
, default prefetch parallelism is 1,
and default prefetch priority is THREAD.MIN_PRIORITY
.
public static RenderedOp create(String opName, ParameterBlock args, RenderingHints hints)
RenderedOp
which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock
, and applying the specified
hints to the destination. This method should only be used when
the final result returned is a single
RenderedImage
.
The defaultJAI
instance is used as the source of the
registry and tile scheduler; that is, this method is equivalent
to getDefaultInstance().createNS(opName, args, hints)
.
The functionality of this method is the same as its corresponding
non-static method createNS()
.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.hints
- The hints for the operation.RenderedOp
that represents the named
operation, or null
if the specified operation
is in the "immediate" mode and the rendering of the
PlanarImage
failed.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the default operation registry.OperationDescriptor
registered under the specified
operation name in the default operation registry does not
support rendered image mode.java.awt.image.RenderedImage
.args
.public RenderedOp createNS(String opName, ParameterBlock args, RenderingHints hints)
RenderedOp
which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock
, and applying the specified
hints to the destination. This method should only be used when
the final result returned is a single
RenderedImage
. However, the source(s) supplied
may be a collection of rendered images or a collection of
collections that at the very basic level include rendered
images.
The supplied operation name is validated against the
operation registry. The source(s) and/or parameter(s) in the
ParameterBlock
are validated against the named
operation's descriptor, both in their numbers and types.
Additional restrictions placed on the sources and parameters
by an individual operation are also validated by calling its
OperationDescriptor.validateArguments()
method.
JAI
allows a parameter to have a null
input
value, if that particular parameter has a default value specified
in its operation's descriptor. In this case, the default value
will replace the null
input.
JAI
also allows unspecified tailing parameters, if these
parameters have default values specified in the operation's
descriptor. However, if a parameter, which has a default value,
is followed by one or more parameters that
have no default values, this parameter must be specified in the
ParameterBlock
, even if it only has a value of
code>null.
The rendering hints associated with this instance of
JAI
are overlaid with the hints passed to this
method. That is, the set of keys will be the union of the
keys from the instance's hints and the hints parameter.
If the same key exists in both places, the value from the
hints parameter will be used.
This version of create
is non-static; it may
be used with a specific instance of theJAI
class.
All of the static create()
methods ultimately call this
method, thus inheriting this method's error handling.
Since this method performs parameter checking, it may not
be suitable for creating RenderedOp
nodes meant to
be passed to another host using the RemoteImage
interface. For example, it might be necessary to refer to a
file that is present only on the remote host. In such cases,
it is possible to instantiate a RenderedOp
directly, avoiding all checks.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.hints
- The hints for the operation.RenderedOp
that represents the named
operation, or null
if the specified operation
is in the "immediate" mode and the rendering of the
PlanarImage
failed.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the current operation registry.OperationDescriptor
registered under the specified
operation name in the current operation registry does not
support rendered image mode.java.awt.image.RenderedImage
.args
.public static Collection createCollection(String opName, ParameterBlock args, RenderingHints hints)
Collection
which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock
, and applying the specified
hints to the destination. This method should only be used when
the final result returned is a Collection
. (This
includes javax.media.jai.CollectionOp
s.)
The defaultJAI
instance is used as the source of the
registry and tile scheduler; that is, this method is equivalent
to getDefaultInstance().createCollectionNS(opName, args,
hints)
. The functionality of this method is the same as
its corresponding non-static method createCollectionNS()
.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.hints
- The hints for the operation.Collection
that represents the named
operation, or null
if the specified operation
is in the "immediate" mode and the rendering of the
PlanarImage
failed.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the default operation registry.OperationDescriptor
registered under the specified
operation name in the default operation registry does not
support rendered image mode.java.awt.image.RenderedImage
or a
javax.media.jai.CollectionImage
.args
.public Collection createCollectionNS(String opName, ParameterBlock args, RenderingHints hints)
Collection
which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock
, and applying the specified
hints to the destination. This method should only be used when
the final result returned is a Collection
. (This
includes javax.media.jai.CollectionOp
s.) The
source(s) supplied may be a collection of rendered images or a
collection of collections that at the very basic level include
rendered images.
The source(s) supplied are unwrapped to create a single collection
that contains RenderedOps and collections as many as the size of
the smallest collection supplied in the sources. The nth collection
is created using all supplied rendered images and the nth element of
each of the collections supplied in the source.
The supplied operation name is validated against the
operation registry. The source(s) and/or parameter(s) in the
ParameterBlock
are val>idated against the named
operation's descriptor, both in their numbers and types.
Additional restrictions placed on the sources and parameters
by an individual operation are also validated by calling its
OperationDescriptor.validateArguments()
method.
JAI
allows a parameter to have a null
input
value, if that particular parameter has a default value specified
in its operation's descriptor. In this case, the default value
will replace the null
input.
JAI
also allows unspecified tailing parameters, if these
parameters have default values specified in the operation's
descriptor. However, if a parameter, which
has a default value, is followed by one or more parameters that
have no default values, this parameter must be specified in the
ParameterBlock
, even if it only has a value of
code>null.
The rendering hints associated with this instance of
JAI
are overlaid with the hints passed to this
method. That is, the set of keys will be the union of the
keys from the instance's hints and the hints parameter.
If the same key exists in both places, the value from the
hints parameter will be used.
This version of createCollection
is
non-static; it may be used with a specific instance of the JAI
class.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.hints
- The hints for the operation.Collection
that represents the named
operation, or null
if the specified operation
is in the "immediate" mode and the rendering of the
PlanarImage
failed.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the current operation registry.OperationDescriptor
registered under the specified
operation name in the current operation registry does not
support rendered image mode.java.awt.image.RenderedImage
or a
javax.media.jai.CollectionImage
.args
.public static RenderedOp create(String opName, ParameterBlock args)
RenderedOp
with null
rendering hints.opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.public static RenderedOp create(String opName, Object param)
RenderedOp
that takes 1 Object
parameter.opName
- The name of the operation.param
- The Object
parameter.public static RenderedOp create(String opName, Object param1, Object param2)
RenderedOp
that takes 2 Object
parameters.opName
- The name of the operation.param1
- The first Object
parameter.param2
- The second Object
parameter.public static RenderedOp create(String opName, Object param1, int param2)
create(String,ParameterBlock)
.
RenderedOp
that takes 1 Object
parameter and
1 int
parameteropName
- The name of the operation.param1
- The Object
parameter.param2
- The int
parameter.public static RenderedOp create(String opName, Object param1, Object param2, Object param3)
create(String,ParameterBlock)
.
RenderedOp
that takes 3 Object
parameters.opName
- The name of the operation.param1
- The first Object
parameter.param2
- The second Object
parameter.param3
- The third Object
parameter.public static RenderedOp create(String opName, int param1, int param2, Object param3)
create(String,ParameterBlock)
.
RenderedOp
that takes 2 int
parameters
and one Object
parameteropName
- The name of the operation.param1
- The first int
parameter.param2
- The second int
parameter.param3
- The Object
parameter.public static RenderedOp create(String opName, Object param1, Object param2, Object param3, Object param4)
create(String,ParameterBlock)
.
RenderedOp
that takes 4 Object
parameters.opName
- The name of the operation.param1
- The first Object
parameter.param2
- The second Object
parameter.param3
- The third Object
parameter.param4
- The fourth Object
parameter.public static RenderedOp create(String opName, Object param1, int param2, Object param3, int param4)
create(String,ParameterBlock)
.
RenderedOp
that takes 2 Object
and 2 int
parameters.opName
- The name of the operation.param1
- The first Object
parameter.param2
- The first int
parameter.param3
- The second Object
parameter.param4
- The second int
parameter.public static RenderedOp create(String opName, RenderedImage src)
RenderedOp
that takes 1 RenderedImage
source.opName
- The name of the operation.src
- The RenderedImage
src parameter.public static RenderedOp create(String opName, Collection srcCol)
create(String,ParameterBlock)
.
RenderedOp
that takes 1 Collection source.opName
- The name of the operation.srcCol
- The Collection src parameter.public static RenderedOp create(String opName, RenderedImage src, Object param)
RenderedOp
that takes 1
RenderedImage
source and
1 Object
parameter.opName
- The name of the operation.src
- The RenderedImage
src parameter.param
- The Object
parameter.public static RenderedOp create(String opName, RenderedImage src, int param)
create(String,ParameterBlock)
.
RenderedOp
that takes 1
RenderedImage
source and
1 int
parameter.opName
- The name of the operation.src
- The RenderedImage
src parameter.param
- The int
parameter.public static RenderedOp create(String opName, RenderedImage src, Object param1, Object param2)
RenderedOp
that takes 1
RenderedImage
source
and 2 Object
parameters.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first object
parameter.param2
- The second Object
parameter.public static RenderedOp create(String opName, RenderedImage src, Object param1, float param2)
create(String,ParameterBlock)
.
RenderedOp
that takes 1
RenderedImage
source,
1 Object
and 1 float
parameter.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The Object
parameter.param2
- The float
parameter.public static RenderedOp create(String opName, RenderedImage src, Object param1, Object param2, Object param3)
RenderedOp
that takes 1
RenderedImage
source
and 3 Object
parameters.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first Object
parameter.param2
- The second Object
parameter.param3
- The third Object
parameter.public static RenderedOp create(String opName, RenderedImage src, Object param1, int param2, int param3)
create(String,ParameterBlock)
.
RenderedOp
that takes 1
RenderedImage
source,
1 Object
and 2 int
parameters.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The Object
parameter.param2
- The first int
parameter.param3
- The second int
parameter.public static RenderedOp create(String opName, RenderedImage src, float param1, float param2, Object param3)
create(String,ParameterBlock)
.
RenderedOp
that takes 1
RenderedImage
source,
2 float
and 1 Object
parameters.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first float
parameter.param2
- The second float
parameter.param3
- The Object
parameter.public static RenderedOp create(String opName, RenderedImage src, Object param1, Object param2, Object param3, Object param4)
create(String,ParameterBlock)
.
RenderedOp
that takes 1
RenderedImage
source and
4 Object
parameters.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first Object
parameter.param2
- The second Object
parameter.param3
- The third Object
parameter.param4
- The fourth Object
parameter.public static RenderedOp create(String opName, RenderedImage src, Object param1, Object param2, int param3, int param4)
create(String,ParameterBlock)
.
RenderedOp
that takes 1
RenderedImage
source and
2 Object
parameters and 2 int
parametersopName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first Object
parameter.param2
- The second Object
parameter.param3
- The first int
parameter.param4
- The second int
parameter.public static RenderedOp create(String opName, RenderedImage src, int param1, int param2, int param3, int param4)
create(String,ParameterBlock)
.
RenderedOp
that takes 1
RenderedImage
source and
4 int
parameters.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first int
parameter.param2
- The second int
parameter.param3
- The third int
parameter.param4
- The fourth int
parameter.public static RenderedOp create(String opName, RenderedImage src, float param1, float param2, float param3, Object param4)
create(String,ParameterBlock)
.
RenderedOp
that takes 1
RenderedImage
source,
3 float
and 1 Object
parameters.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first float
parameter.param2
- The second float
parameter.param3
- The third float
parameter.param4
- The Object
parameter.public static RenderedOp create(String opName, RenderedImage src, Object param1, Object param2, Object param3, Object param4, Object param5)
create(String,ParameterBlock)
.
RenderedOp
that takes 1
RenderedImage
source and
5 Object
parameters.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first Object
parameter.param2
- The second Object
parameter.param3
- The third Object
parameter.param4
- The fourth Object
parameter.param5
- The fifth Object
parameter.public static RenderedOp create(String opName, RenderedImage src, float param1, float param2, float param3, float param4, Object param5)
create(String,ParameterBlock)
.
RenderedOp
that takes 1 RenderedImage
source,
4 float
parameters and one Object
parameter.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first float
parameter.param2
- The second float
parameter.param3
- The third float
parameter.param4
- The fourth float
parameter.param5
- The Object
parameter.public static RenderedOp create(String opName, RenderedImage src, float param1, int param2, float param3, float param4, Object param5)
create(String,ParameterBlock)
.
RenderedOp
that takes 1
RenderedImage
source,
3 float
parameters, 1 int
parameter and 1 Object
parameter.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first float
parameter.param2
- The int
parameter.param3
- The second float
parameter.param4
- The third float
parameter.param5
- The Object
parameter.public static RenderedOp create(String opName, RenderedImage src, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6)
create(String,ParameterBlock)
.
RenderedOp
that takes 1
RenderedImage
source and
6 Object
parameters.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first Object
parameter.param2
- The second Object
parameter.param3
- The third Object
parameter.param4
- The fourth Object
parameter.param5
- The fifth Object
parameter.param6
- The sixth Object
parameter.public static RenderedOp create(String opName, RenderedImage src, int param1, int param2, int param3, int param4, int param5, Object param6)
create(String,ParameterBlock)
.
RenderedOp
that takes 1 RenderedImage
source,
5 int
parameters and 1 Object
parameter.opName
- The name of the operation.src
- The RenderedImage
src parameter.param1
- The first int
parameter.param2
- The second int
parameter.param3
- The third int
parameter.param4
- The fourth int
parameter.param5
- The fifth int
parameter.param6
- The Object
parameter.public static RenderedOp create(String opName, RenderedImage src1, RenderedImage src2)
RenderedOp
that takes 2
RenderedImage
sources.opName
- The name of the operation.src1
- The first RenderedImage
src.src2
- The second RenderedImage
src.public static RenderedOp create(String opName, RenderedImage src1, RenderedImage src2, Object param1, Object param2, Object param3, Object param4)
create(String,ParameterBlock)
.
RenderedOp
that takes 2
RenderedImage
sources and
4 Object
parameters.opName
- The name of the operation.src1
- The first RenderedImage
src.src2
- The second RenderedImage
src.param1
- The first Object
parameter.param2
- The second Object
parameter.param3
- The third Object
parameter.param4
- The fourth Object
parameter.public static Collection createCollection(String opName, ParameterBlock args)
Collection
with null
rendering hints.opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.public static RenderableOp createRenderable(String opName, ParameterBlock args, RenderingHints hints)
RenderableOp
that represents the named
operation, using the source(s) and/or parameter(s) specified
in the ParameterBlock
. This method should only
be used when the final result returned is a single
RenderdableImage
.
The defaultJAI
instance is used as the source of the
registry and tile scheduler; that is, this method is equivalent to
getDefaultInstance().createRenderableNS(opName, args, hints)
.
The functionality of this method is the same as its corresponding
non-static method createRenderableNS()
.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.hints
- The hints for the operation.RenderableOp
that represents the named
operation.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the default operation registry.OperationDescriptor
registered under the specified
operation name in the default operation registry does not
support renderable image mode.java.awt.image.renderable.RenderableImage
.args
.public static RenderableOp createRenderable(String opName, ParameterBlock args)
RenderableOp
that represents the named
operation, using the source(s) and/or parameter(s) specified
in the ParameterBlock
. This method should only
be used when the final result returned is a single
RenderdableImage
.
The defaultJAI
instance is used as the source of the
registry and tile scheduler; that is, this method is equivalent to
getDefaultInstance().createRenderableNS(opName, args, null)
.
The functionality of this method is the same as its corresponding
non-static method createRenderableNS()
.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.RenderableOp
that represents the named
operation.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the default operation registry.OperationDescriptor
registered under the specified
operation name in the default operation registry does not
support renderable image mode.java.awt.image.renderable.RenderableImage
.args
.public RenderableOp createRenderableNS(String opName, ParameterBlock args, RenderingHints hints)
RenderableOp
that represents the named
operation, using the source(s) and/or parameter(s) specified
in the ParameterBlock
. This method should only
be used when the final result returned is a single
RenderableImage
. However, the source(s) supplied
may be a collection of renderable images or a collection of
collections that at the very basic level include renderable
images.
The supplied operation name is validated against the
operation registry. The source(s) and/or parameter(s) in the
ParameterBlock
are validated against the named
operation's descriptor, both in their numbers and types.
Additional restrictions placed on the sources and parameters
by an individual operation are also validated by calling its
OperationDescriptor.validateRenderableArguments()
method.
JAI
allows a parameter to have a null
input
value, if that particular parameter has a default value specified
in its operation's descriptor. In this case, the default value
will replace the null
input.
JAI
also allows unspecified tailing parameters, if these
parameters have default values specified in the operation's
descriptor. However, if a parameter, which
has a default value, is followed by one or more parameters that
have no default values, this parameter must be specified in the
ParameterBlock
, even if it only has a value of
code>null.
The rendering hints associated with this instance of
JAI
are overlaid with the hints passed to this
method. That is, the set of keys will be the union of the
keys from the instance's hints and the hints parameter.
If the same key exists in both places, the value from the
hints parameter will be used.
This version of the "createRenderable" is non-static; it
may be used with a specific instance of theJAI
class.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.hints
- The hints for the operation.RenderableOp
that represents the named
operation.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the current operation registry.OperationDescriptor
registered under the specified
operation name in the current operation registry does not
support renderable image mode.java.awt.image.renderable.RenderableImage
.args
.public RenderableOp createRenderableNS(String opName, ParameterBlock args)
createRenderableNS(String,ParameterBlock,RenderingHints)
.
RenderableOp
that represents the named
operation, using the source(s) and/or parameter(s) specified
in the ParameterBlock
. This method should only
be used when the final result returned is a single
RenderableImage
. However, the source(s) supplied
may be a collection of renderable images or a collection of
collections that at the very basic level include renderable
images.
The supplied operation name is validated against the
operation registry. The source(s) and/or parameter(s) in the
ParameterBlock
are validated against the named
operation's descriptor, both in their numbers and types.
Additional restrictions placed on the sources and parameters
by an individual operation are also validated by calling its
OperationDescriptor.validateRenderableArguments()
method.
JAI
allows a parameter to have a null
input
value, if that particular parameter has a default value specified
in its operation's descriptor. In this case, the default value
will replace the null
input.
JAI
also allows unspecified tailing parameters, if these
parameters have default values specified in the operation's
descriptor. However, if a parameter, which
has a default value, is followed by one or more parameters that
have no default values, this parameter must be specified in the
ParameterBlock
, even if it only has a value of
code>null.
The rendering hints associated with this instance of
JAI
are overlaid with the hints passed to this
method. That is, the set of keys will be the union of the
keys from the instance's hints and the hints parameter.
If the same key exists in both places, the value from the
hints parameter will be used.
This version of the "createRenderable" is non-static; it
may be used with a specific instance of theJAI
class.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.RenderableOp
that represents the named
operation.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the current operation registry.OperationDescriptor
registered under the specified
operation name in the current operation registry does not
support renderable image mode.java.awt.image.renderable.RenderableImage
.args
.createRenderableNS(String,ParameterBlock,RenderingHints)
public static Collection createRenderableCollection(String opName, ParameterBlock args, RenderingHints hints)
Collection
which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock
. This method should only be used
when the final result returned is a Collection
.
(This includes javax.media.jai.CollectionOp
s.)
The defaultJAI
instance is used as the source of the
registry and tile scheduler; that is, this method is equivalent
to getDefaultInstance().createRenderableCollectionNS(opName,
args,hints)
. The functionality of this method is the same as
its corresponding non-static method
createRenderableCollectionNS()
.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.hints
- The hints for the operation.Collection
that represents the named
operation.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the default operation registry.OperationDescriptor
registered under the specified
operation name in the default operation registry does not
support renderable image mode.java.awt.image.renderable.RenderableImage
or a
javax.media.jai.CollectionImage
.args
.public static Collection createRenderableCollection(String opName, ParameterBlock args)
Collection
which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock
. This method should only be used
when the final result returned is a Collection
.
(This includes javax.media.jai.CollectionOp
s.)
The defaultJAI
instance is used as the source of the
registry and tile scheduler; that is, this method is equivalent
to getDefaultInstance().createRenderableCollectionNS(opName,
args,null)
. The functionality of this method is the same as
its corresponding non-static method
createRenderableCollectionNS()
.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.Collection
that represents the named
operation.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the default operation registry.OperationDescriptor
registered under the specified
operation name in the default operation registry does not
support renderable image mode.java.awt.image.renderable.RenderableImage
or a
javax.media.jai.CollectionImage
.args
.public Collection createRenderableCollectionNS(String opName, ParameterBlock args)
createRenderableCollectionNS(String,ParameterBlock,RenderingHints)
.
Collection
which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock
. This method should only be used
when the final result returned is a Collection
.
(This includes javax.media.jai.CollectionOp
s.) The
source(s) supplied may be a collection of renderable images or a
collection of collections that at the very basic level include
renderable images.
The source(s) supplied are unwrapped to create a single collection
that contains RenderableOps and collections as many as the size of
the smallest collection supplied in the sources. The nth collection
is created using all supplied renderable images and the nth element of
each of the collections supplied in the source.
This method should be used to create a Collection
in the renderable image mode.
The supplied operation name is validated against the
operation registry. The source(s) and/or parameter(s) in the
ParameterBlock
are validated against the named
operation's descriptor, both in their numbers and types.
Additional restrictions placed on the sources and parameters
by an individual operation are also validated by calling its
OperationDescriptor.validateRenderableArguments()
method.
JAI
allows a parameter to have a null
input
value, if that particular parameter has a default value specified
in its operation's descriptor. In this case, the default value
will replace the null
input.
JAI
also allows unspecified tailing parameters, if these
parameters have default values specified in the operation's
descriptor. However, if a parameter, which
has a default value, is followed by one or more parameters that
have no default values, this parameter must be specified in the
ParameterBlock
, even if it only has a value of
code>null.
This version of createRenderableCollection
is
non-static; it may be used with a specific instance of the JAI
class.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.Collection
that represents the named
operation.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the current operation registry.OperationDescriptor
registered under the specified
operation name in the current operation registry does not
support renderable image mode.java.awt.image.renderable.RenderableImage
or a
javax.media.jai.CollectionImage
.args
.createRenderableCollectionNS(String,ParameterBlock,RenderingHints)
public Collection createRenderableCollectionNS(String opName, ParameterBlock args, RenderingHints hints)
Collection
which represents the named
operation, using the source(s) and/or parameter(s) specified in
the ParameterBlock
. This method should only be used
when the final result returned is a Collection
.
(This includes javax.media.jai.CollectionOp
s.) The
source(s) supplied may be a collection of renderable images or a
collection of collections that at the very basic level include
renderable images.
The source(s) supplied are unwrapped to create a single collection
that contains RenderableOps and collections as many as the size of
the smallest collection supplied in the sources. The nth collection
is created using all supplied renderable images and the nth element of
each of the collections supplied in the source.
This method should be used to create a Collection
in the renderable image mode.
The supplied operation name is validated against the
operation registry. The source(s) and/or parameter(s) in the
ParameterBlock
are validated against the named
operation's descriptor, both in their numbers and types.
Additional restrictions placed on the sources and parameters
by an individual operation are also validated by calling its
OperationDescriptor.validateRenderableArguments()
method.
JAI
allows a parameter to have a null
input
value, if that particular parameter has a default value specified
in its operation's descriptor. In this case, the default value
will replace the null
input.
JAI
also allows unspecified tailing parameters, if these
parameters have default values specified in the operation's
descriptor. However, if a parameter, which
has a default value, is followed by one or more parameters that
have no default values, this parameter must be specified in the
ParameterBlock
, even if it only has a value of
code>null.
The rendering hints associated with this instance of
JAI
are overlaid with the hints passed to this
method. That is, the set of keys will be the union of the
keys from the instance's hints and the hints parameter.
If the same key exists in both places, the value from the
hints parameter will be used.
This version of createRenderableCollection
is
non-static; it may be used with a specific instance of the JAI
class.
opName
- The name of the operation.args
- The source(s) and/or parameter(s) for the operation.hints
- The hints for the operation.Collection
that represents the named
operation.opName
is null
.args
is null
.OperationDescriptor
is registered under the
specified operation name in the current operation registry.OperationDescriptor
registered under the specified
operation name in the current operation registry does not
support renderable image mode.java.awt.image.renderable.RenderableImage
or a
javax.media.jai.CollectionImage
.args
.public RenderingHints getRenderingHints()
RenderingHints
associated with this
JAI
instance. These rendering hints will be
merged with any hints supplied as an argument to the
createNS()
, createRenderableNS()
,
or createCollectionNS()
methods.public void setRenderingHints(RenderingHints hints)
RenderingHints
associated with this
JAI
instance. These rendering hints will be
merged with any hints supplied as an argument to the
createNS()
, createRenderableNS()
,
or createCollectionNS()
methods.
The hints
argument must be non-null, otherwise
a IllegalArgumentException
will be thrown.
public void clearRenderingHints()
RenderingHints
associated with this
JAI
instance.public Object getRenderingHint(RenderingHints.Key key)
JAI
instance, or null
if no value is associated with the given key.key
is
null
.public void setRenderingHint(RenderingHints.Key key, Object value)
JAI
instance.key
is
null
.value
is
null
.value
is
not of the correct type for the given hint.public void removeRenderingHint(RenderingHints.Key key)
JAI
instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |