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 booleanregisterRIF(ImageN imagen, OperationDescriptor descriptor, RenderedImageFactory rif, String productName) Forcefully registers the specified rendered operation in the ImageN registrystatic booleanregisterRIF(ImageN imagen, OperationDescriptor descriptor, String name, ContextualRenderedImageFactory crif) Register the "SampleTranscode" image operation to the operation registry of the specified ImageN instance.static voidsetNativeAccelerationAllowed(String operation, boolean allowed) Deprecated.static voidsetNativeAccelerationAllowed(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 heJAIinstance in which we ant to register this operation.descriptor- is theOperationDescriptorfor the ImageN operation to register.name- is the name of the operation to register.crif- is the rendered image facotry for this operation.- Returns:
trueif everything goes well,falseotherwise.
-
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
-