|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.jai.registry.CRIFRegistry
public final class CRIFRegistry
Utility class to provide type-safe interaction
with the OperationRegistry
for
ContextualRenderedImageFactory
objects.
If the OperationRegistry
is null
, then
JAI.getDefaultInstance().getOperationRegistry()
will be used.
Constructor Summary | |
---|---|
CRIFRegistry()
|
Method Summary | |
---|---|
static RenderedImage |
create(OperationRegistry registry,
String operationName,
RenderContext context,
ParameterBlock paramBlock)
Creates a rendering, given a RenderContext and a ParameterBlock containing the operation's sources and parameters. |
static ContextualRenderedImageFactory |
get(OperationRegistry registry,
String operationName)
Returns the ContextualRenderedImageFactory object
registered against the operation name. |
static PropertySource |
getPropertySource(RenderableOp op)
Constructs and returns a PropertySource suitable for
use by a given RenderableOp . |
static void |
register(OperationRegistry registry,
String operationName,
ContextualRenderedImageFactory crif)
Register a CRIF with a particular operation against a specified mode. |
static void |
unregister(OperationRegistry registry,
String operationName,
ContextualRenderedImageFactory crif)
Unregister a CRIF previously registered with an operation against the specified mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CRIFRegistry()
Method Detail |
---|
public static void register(OperationRegistry registry, String operationName, ContextualRenderedImageFactory crif)
registry.registerCRIF(...)
registry
- the OperationRegistry
to register with.
if this is null
, then
JAI.getDefaultInstance().getOperationRegistry()
will be used.operationName
- the operation name as a String
crif
- the ContextualRenderedImageFactory
to be registered
IllegalArgumentException
- if operationName or crif is
null
IllegalArgumentException
- if there is no
OperationDescriptor
registered against
the operationName
public static void unregister(OperationRegistry registry, String operationName, ContextualRenderedImageFactory crif)
registry
- the OperationRegistry
to unregister from.
if this is null
, then
JAI.getDefaultInstance().getOperationRegistry()
will be used.operationName
- the operation name as a String
crif
- the ContextualRenderedImageFactory
to be unregistered
IllegalArgumentException
- if operationName or crif is
null
IllegalArgumentException
- if there is no
OperationDescriptor
registered against
the operationName
IllegalArgumentException
- if the crif was not previously
registered against operationNamepublic static ContextualRenderedImageFactory get(OperationRegistry registry, String operationName)
ContextualRenderedImageFactory
object
registered against the operation name.
registry
- the OperationRegistry
to use.
if this is null
, then
JAI.getDefaultInstance().getOperationRegistry()
will be used.operationName
- the operation name as a String
ContextualRenderedImageFactory
object
IllegalArgumentException
- if operationName is null
IllegalArgumentException
- if there is no
OperationDescriptor
registered against
the operationName
public static RenderedImage create(OperationRegistry registry, String operationName, RenderContext context, ParameterBlock paramBlock)
registry
- the OperationRegistry
to use.
if this is null
, then
JAI.getDefaultInstance().getOperationRegistry()
will be used.operationName
- the operation name as a String
context
- a RenderContext
object containing
the rendering context.paramBlock
- the operation's ParameterBlock.
IllegalArgumentException
- if operationName is null
IllegalArgumentException
- if there is no
OperationDescriptor
registered against
the operationName
public static PropertySource getPropertySource(RenderableOp op)
PropertySource
suitable for
use by a given RenderableOp
. The
PropertySource
includes properties copied from prior
nodes as well as those generated at the node itself. Additionally,
property suppression is taken into account. The actual implementation
of getPropertySource()
may make use of deferred
execution and caching.
op
- the RenderableOp
requesting its
PropertySource
.
IllegalArgumentException
- if op
is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |