Package org.geotools.parameter
Class ImagingParameterDescriptors
Object
Formattable
AbstractIdentifiedObject
AbstractParameterDescriptor
DefaultParameterDescriptorGroup
ImagingParameterDescriptors
- All Implemented Interfaces:
Serializable,GeneralParameterDescriptor,ParameterDescriptorGroup,IdentifiedObject
- Direct Known Subclasses:
ExtendedImagingParameterDescriptors
Wraps a JAI's
ParameterListDescriptor. This adaptor is provided for interoperability with Java Advanced Imaging. A ImageN parameter list descriptor is
part of an operation descriptor. This adaptor make it easier to access parameters
for a ImageN operation through the general GeoAPI parameters framework.- Since:
- 2.2
- Author:
- Martin Desruisseaux (IRD)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe default source type map as a (RenderedImage.class,GridCoverage.class) key-value pair.protected final ParameterListDescriptorThe Java Advanced Imaging parameter descriptor.protected final RegistryElementDescriptorThe JAI's operation descriptor, ornullif none.protected final StringThe registry mode, usually "rendered".Fields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATORFields inherited from class Formattable
SINGLE_LINEFields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY -
Constructor Summary
ConstructorsConstructorDescriptionImagingParameterDescriptors(Map<String, ?> properties, ParameterListDescriptor descriptor) Constructs a parameter descriptor wrapping the specified ImageN parameter list descriptor.ImagingParameterDescriptors(Map<String, ?> properties, RegistryElementDescriptor operation, String registryMode, Map<Class<?>, Class<?>> sourceTypeMap, Collection<ParameterDescriptor> extension) Constructs a parameter descriptor wrapping the specified ImageN operation, including sources.ImagingParameterDescriptors(RegistryElementDescriptor operation) Constructs a parameter descriptor wrapping the specified ImageN operation, including sources.ImagingParameterDescriptors(RegistryElementDescriptor operation, Collection<ParameterDescriptor> extension) Constructs a parameter descriptor wrapping the specified ImageN operation, including sources. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance of parameter value group.booleanequals(AbstractIdentifiedObject object, boolean compareMetadata) Compares the specified object with this parameter group for equality.inthashCode()Returns a hash value for this parameter.properties(RegistryElementDescriptor operation) Infers from the specified ImageN operation a set of properties that can be given to theImagingParameterDescriptors(Map, RegistryElementDescriptor, String, Map, Collection) constructor.Methods inherited from class DefaultParameterDescriptorGroup
descriptor, descriptors, getMaximumOccursMethods inherited from class AbstractParameterDescriptor
formatWKT, getMinimumOccursMethods inherited from class AbstractIdentifiedObject
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatchesMethods inherited from class Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKTMethods inherited from interface GeneralParameterDescriptor
getMinimumOccursMethods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Field Details
-
DEFAULT_SOURCE_TYPE_MAP
The default source type map as a (RenderedImage.class,GridCoverage.class) key-value pair. This is the default argument for wrapping a ImageN operation in the "rendered" registry mode. -
registryMode
The registry mode, usually "rendered". This field isnullifoperationis null. -
operation
protected final RegistryElementDescriptor operationThe JAI's operation descriptor, ornullif none. This is usually an instance ofOperationDescriptor, but this is not strictly required. -
descriptor
protected final ParameterListDescriptor descriptorThe Java Advanced Imaging parameter descriptor. Ifoperationis non-null, then this attribute is defined byRegistryElementDescriptor.getParameterListDescriptor(java.lang.String).
-
-
Constructor Details
-
ImagingParameterDescriptors
public ImagingParameterDescriptors(RegistryElementDescriptor operation) Constructs a parameter descriptor wrapping the specified ImageN operation, including sources. The name for this parameter group will be inferred from the name of the supplied registry element using thepropertiesmethod.The source type map default to a (
RenderedImage.class,GridCoverage.class) key-value pair and the registry mode default to "rendered".- Parameters:
operation- The JAI's operation descriptor, usually as an instance ofOperationDescriptor.
-
ImagingParameterDescriptors
public ImagingParameterDescriptors(RegistryElementDescriptor operation, Collection<ParameterDescriptor> extension) Constructs a parameter descriptor wrapping the specified ImageN operation, including sources. The name for this parameter group will be inferred from the name of the supplied registry element using thepropertiesmethod.The source type map default to a (
RenderedImage.class,GridCoverage.class) key-value pair and the registry mode default to "rendered".- Parameters:
operation- The JAI's operation descriptor, usually as an instance ofOperationDescriptor.extension- Additional parameters to put in this descriptor, ornullif none. If a parameter has the same name than anoperationparameter, then the extension overrides the later.- Since:
- 2.4
-
ImagingParameterDescriptors
public ImagingParameterDescriptors(Map<String, ?> properties, RegistryElementDescriptor operation, String registryMode, Map<Class<?>, Class<?>> sourceTypeMap, Collection<ParameterDescriptor> extension) Constructs a parameter descriptor wrapping the specified ImageN operation, including sources. The properties map is given unchanged to the super-class constructor.- Parameters:
properties- Set of properties. Should contains at least"name".operation- The JAI's operation descriptor, usually as an instance ofOperationDescriptor.registryMode- The JAI's registry mode (usually "rendered").sourceTypeMap- Mapping from ImageN source type to this group source type. Typically a singleton with the (RenderedImage.class,GridCoverage.class) key-value pair.extension- Additional parameters to put in this descriptor, ornullif none. If a parameter has the same name than anoperationparameter, then the extension overrides the later.- Since:
- 2.4
-
ImagingParameterDescriptors
Constructs a parameter descriptor wrapping the specified ImageN parameter list descriptor. The properties map is given unchanged to the super-class constructor.- Parameters:
properties- Set of properties. Should contains at least"name".descriptor- The ImageN descriptor.
-
-
Method Details
-
properties
Infers from the specified ImageN operation a set of properties that can be given to theImagingParameterDescriptors(Map, RegistryElementDescriptor, String, Map, Collection) constructor. The returned map includes values (when available) for the following keys:Key Inferred from NAME_KEYdescriptor name ALIAS_KEY"Vendor"(for the scope) and"LocalName"resourcesAUTHORITY_KEYJAI or Geotools inferred from the vendor, extented with "DocURL"resources as contact information.VERSION_KEY"Version"resourcesREMARKS_KEY"Description"resourcesFor ImageN image operation (for example
"Add", the end result is fully-qualified name like"JAI:Add"and one alias like"org.eclipse.imagen.media.Add".This method returns a modifiable map. Users can safely changes its content in order to select for example a different name.
-
createValue
Creates a new instance of parameter value group. A ImageNParameterListis created for holding parameter values, and wrapped into anImagingParametersinstance.- Specified by:
createValuein interfaceGeneralParameterDescriptor- Specified by:
createValuein interfaceParameterDescriptorGroup- Overrides:
createValuein classDefaultParameterDescriptorGroup- Returns:
- The new value initialized to the default value.
-
equals
Compares the specified object with this parameter group for equality.- Overrides:
equalsin classDefaultParameterDescriptorGroup- Parameters:
object- The object to compare tothis.compareMetadata-truefor performing a strict comparaison, orfalsefor comparing only properties relevant to transformations.- Returns:
trueif both objects are equal.
-
hashCode
public int hashCode()Returns a hash value for this parameter. This value doesn't need to be the same in past or future versions of this class.- Overrides:
hashCodein classDefaultParameterDescriptorGroup- Returns:
- The hash code value. This value doesn't need to be the same in past or future versions of this class.
-