Package org.geotools.image.jai
Class Registry
Object
Registry
A set of static methods for managing JAI's operation registry.
- Since:
- 2.2
- Author:
- Martin Desruisseaux (IRD), Andrea Aime - GeoSolutions
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
registerRIF
(ImageN imagen, OperationDescriptor descriptor, RenderedImageFactory rif, String productName) Forcefully registers the specified rendered operation in the ImageN registrystatic boolean
registerRIF
(ImageN imagen, OperationDescriptor descriptor, String name, ContextualRenderedImageFactory crif) Register the "SampleTranscode" image operation to the operation registry of the specified ImageN instance.static void
setNativeAccelerationAllowed
(String operation, boolean allowed) Deprecated.static void
setNativeAccelerationAllowed
(String operation, boolean allowed, ImageN imagen) Deprecated.
-
Field Details
-
JAI_TOOLS_PRODUCT
The JAITools product name (used to register operations in JAI)- See Also:
-
GEOTOOLS_PRODUCT
The GeoTools product name (used to register operations in JAI)- See Also:
-
-
Method Details
-
setNativeAccelerationAllowed
@Deprecated public static void setNativeAccelerationAllowed(String operation, boolean allowed, ImageN imagen) Deprecated.Native acceleration is no longer supported. -
setNativeAccelerationAllowed
Deprecated.Native acceleration is no longer supported. -
registerRIF
public static boolean registerRIF(ImageN imagen, OperationDescriptor descriptor, String name, ContextualRenderedImageFactory crif) Register the "SampleTranscode" image operation to the operation registry of the specified ImageN instance. This method is invoked by the static initializer ofGridSampleDimension
.- Parameters:
imagen
- is heJAI
instance in which we ant to register this operation.descriptor
- is theOperationDescriptor
for the ImageN operation to register.name
- is the name of the operation to register.crif
- is the rendered image facotry for this operation.- Returns:
true
if everything goes well,false
otherwise.
-
registerRIF
public static boolean registerRIF(ImageN imagen, OperationDescriptor descriptor, RenderedImageFactory rif, String productName) Forcefully registers the specified rendered operation in the ImageN registry- Returns:
- true if the registration succeded, false if the registration was not required as the operation was already available in the registry
-