| java.lang.Object javax.media.jai.registry.CRIFRegistry
CRIFRegistry | final public class CRIFRegistry (Code) | | 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.
since: JAI 1.1 |
Method Summary | |
public 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. | public static ContextualRenderedImageFactory | get(OperationRegistry registry, String operationName) Returns the ContextualRenderedImageFactory object
registered against the operation name. | public static PropertySource | getPropertySource(RenderableOp op) Constructs and returns a PropertySource suitable for
use by a given RenderableOp . | public static void | register(OperationRegistry registry, String operationName, ContextualRenderedImageFactory crif) Register a CRIF with a particular operation against
a specified mode. | public static void | unregister(OperationRegistry registry, String operationName, ContextualRenderedImageFactory crif) Unregister a CRIF previously registered with an operation
against the specified mode. |
create | public static RenderedImage create(OperationRegistry registry, String operationName, RenderContext context, ParameterBlock paramBlock)(Code) | | Creates a rendering, given a RenderContext and a ParameterBlock
containing the operation's sources and parameters. The registry
is used to determine the CRIF to be used to instantiate the
operation.
Parameters: registry - the OperationRegistry to use.if this is null , then JAI.getDefaultInstance().getOperationRegistry() will be used. Parameters: operationName - the operation name as a String Parameters: context - a RenderContext object containingthe rendering context. Parameters: paramBlock - the operation's ParameterBlock. throws: IllegalArgumentException - if operationName is null throws: IllegalArgumentException - if there is no OperationDescriptor registered againstthe operationName |
get | public static ContextualRenderedImageFactory get(OperationRegistry registry, String operationName)(Code) | | Returns the ContextualRenderedImageFactory object
registered against the operation name.
Parameters: registry - the OperationRegistry to use.if this is null , then JAI.getDefaultInstance().getOperationRegistry() will be used. Parameters: operationName - the operation name as a String a registered ContextualRenderedImageFactory object throws: IllegalArgumentException - if operationName is null throws: IllegalArgumentException - if there is no OperationDescriptor registered againstthe operationName |
getPropertySource | public static PropertySource getPropertySource(RenderableOp op)(Code) | | Constructs and returns a 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.
Parameters: op - the RenderableOp requesting its PropertySource . throws: IllegalArgumentException - if op is null |
register | public static void register(OperationRegistry registry, String operationName, ContextualRenderedImageFactory crif)(Code) | | Register a CRIF with a particular operation against
a specified mode. This is JAI 1.0.x equivalent of
registry.registerCRIF(...)
Parameters: registry - the OperationRegistry to register with.if this is null , then JAI.getDefaultInstance().getOperationRegistry() will be used. Parameters: operationName - the operation name as a String Parameters: crif - the ContextualRenderedImageFactory to be registered throws: IllegalArgumentException - if operationName or crif isnull throws: IllegalArgumentException - if there is no OperationDescriptor registered againstthe operationName |
unregister | public static void unregister(OperationRegistry registry, String operationName, ContextualRenderedImageFactory crif)(Code) | | Unregister a CRIF previously registered with an operation
against the specified mode.
Parameters: registry - the OperationRegistry to unregister from.if this is null , then JAI.getDefaultInstance().getOperationRegistry() will be used. Parameters: operationName - the operation name as a String Parameters: crif - the ContextualRenderedImageFactory to be unregistered throws: IllegalArgumentException - if operationName or crif isnull throws: IllegalArgumentException - if there is no OperationDescriptor registered againstthe operationName throws: IllegalArgumentException - if the crif was not previouslyregistered against operationName |
|
|