|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.referencing.wkt.Formattable
org.geotools.referencing.AbstractIdentifiedObject
org.geotools.parameter.AbstractParameterDescriptor
org.geotools.parameter.DefaultParameterDescriptorGroup
org.geotools.parameter.ImagingParameterDescriptors
public class ImagingParameterDescriptors
Wraps a JAI's ParameterListDescriptor
. This adaptor is provided for interoperability
with Java Advanced Imaging. A JAI
parameter list descriptor is part of an operation descriptor.
This adaptor make it easier to access parameters for a JAI operation through the general GeoAPI
parameters framework.
Field Summary | |
---|---|
static java.util.Map<java.lang.Class<?>,java.lang.Class<?>> |
DEFAULT_SOURCE_TYPE_MAP
The default source type map as a ( RenderedImage.class ,
GridCoverage.class ) key-value pair. |
protected javax.media.jai.ParameterListDescriptor |
descriptor
The Java Advanced Imaging parameter descriptor. |
protected javax.media.jai.RegistryElementDescriptor |
operation
The JAI's operation descriptor, or null if none. |
protected java.lang.String |
registryMode
The registry mode, usually "rendered". |
Fields inherited from class org.geotools.referencing.AbstractIdentifiedObject |
---|
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR |
Fields inherited from class org.geotools.referencing.wkt.Formattable |
---|
SINGLE_LINE |
Fields inherited from interface org.opengis.referencing.IdentifiedObject |
---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
Constructor Summary | |
---|---|
ImagingParameterDescriptors(java.util.Map<java.lang.String,?> properties,
javax.media.jai.ParameterListDescriptor descriptor)
Constructs a parameter descriptor wrapping the specified JAI parameter list descriptor. |
|
ImagingParameterDescriptors(java.util.Map<java.lang.String,?> properties,
javax.media.jai.RegistryElementDescriptor operation,
java.util.Map<java.lang.Class<?>,java.lang.Class<?>> sourceTypeMap,
java.lang.String registryMode)
Deprecated. Replaced by #ImagingParameterDescriptors(Map,
RegistryElementDescriptor,String,Map,Collection . |
|
ImagingParameterDescriptors(java.util.Map<java.lang.String,?> properties,
javax.media.jai.RegistryElementDescriptor operation,
java.lang.String registryMode,
java.util.Map<java.lang.Class<?>,java.lang.Class<?>> sourceTypeMap,
java.util.Collection<org.opengis.parameter.ParameterDescriptor> extension)
Constructs a parameter descriptor wrapping the specified JAI operation, including sources. |
|
ImagingParameterDescriptors(javax.media.jai.RegistryElementDescriptor operation)
Constructs a parameter descriptor wrapping the specified JAI operation, including sources. |
|
ImagingParameterDescriptors(javax.media.jai.RegistryElementDescriptor operation,
java.util.Collection<org.opengis.parameter.ParameterDescriptor> extension)
Constructs a parameter descriptor wrapping the specified JAI operation, including sources. |
Method Summary | |
---|---|
org.opengis.parameter.ParameterValueGroup |
createValue()
Creates a new instance of parameter value group. |
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compares the specified object with this parameter group for equality. |
int |
hashCode()
Returns a hash value for this parameter. |
static java.util.Map<java.lang.String,java.lang.Object> |
properties(javax.media.jai.RegistryElementDescriptor operation)
Infers from the specified JAI operation a set of properties that can be given to the constructor. |
Methods inherited from class org.geotools.parameter.DefaultParameterDescriptorGroup |
---|
descriptor, descriptors, getMaximumOccurs |
Methods inherited from class org.geotools.parameter.AbstractParameterDescriptor |
---|
formatWKT, getMinimumOccurs |
Methods inherited from class org.geotools.referencing.AbstractIdentifiedObject |
---|
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches |
Methods inherited from class org.geotools.referencing.wkt.Formattable |
---|
cleanupThreadLocals, toString, toWKT, toWKT, toWKT |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.parameter.GeneralParameterDescriptor |
---|
getMinimumOccurs |
Methods inherited from interface org.opengis.referencing.IdentifiedObject |
---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
Field Detail |
---|
public static final java.util.Map<java.lang.Class<?>,java.lang.Class<?>> DEFAULT_SOURCE_TYPE_MAP
RenderedImage.class
,
GridCoverage.class
) key-value pair. This is the default argument
for wrapping a JAI operation in the
"rendered" registry mode.
protected final java.lang.String registryMode
null
if operation
is null.
protected final javax.media.jai.RegistryElementDescriptor operation
null
if none. This is usually an
instance of OperationDescriptor
, but this is not strictly required.
protected final javax.media.jai.ParameterListDescriptor descriptor
operation
is non-null, then
this attribute is defined by RegistryElementDescriptor.getParameterListDescriptor(java.lang.String)
.
Constructor Detail |
---|
public ImagingParameterDescriptors(javax.media.jai.RegistryElementDescriptor operation)
properties
method.
The source type map default to a (RenderedImage.class
,
GridCoverage.class
) key-value pair and the registry
mode default to "rendered".
operation
- The JAI's operation descriptor, usually as an instance of
OperationDescriptor
.public ImagingParameterDescriptors(javax.media.jai.RegistryElementDescriptor operation, java.util.Collection<org.opengis.parameter.ParameterDescriptor> extension)
properties
method.
The source type map default to a (RenderedImage.class
,
GridCoverage.class
) key-value pair and the registry
mode default to "rendered".
operation
- The JAI's operation descriptor, usually as an instance of
OperationDescriptor
.extension
- Additional parameters to put in this descriptor, or null
if none.
If a parameter has the same name than an operation
parameter, then the
extension overrides the later.public ImagingParameterDescriptors(java.util.Map<java.lang.String,?> properties, javax.media.jai.RegistryElementDescriptor operation, java.util.Map<java.lang.Class<?>,java.lang.Class<?>> sourceTypeMap, java.lang.String registryMode)
#ImagingParameterDescriptors(Map,
RegistryElementDescriptor,String,Map,Collection
.
properties
- Set of properties. Should contains at least "name"
.operation
- The JAI's operation descriptor, usually as an instance of
OperationDescriptor
.sourceTypeMap
- Mapping from JAI source type to this group source type. Typically a
singleton with the (RenderedImage.class
,
GridCoverage.class
) key-value pair.registryMode
- The JAI's registry mode (usually
"rendered").public ImagingParameterDescriptors(java.util.Map<java.lang.String,?> properties, javax.media.jai.RegistryElementDescriptor operation, java.lang.String registryMode, java.util.Map<java.lang.Class<?>,java.lang.Class<?>> sourceTypeMap, java.util.Collection<org.opengis.parameter.ParameterDescriptor> extension)
properties
- Set of properties. Should contains at least "name"
.operation
- The JAI's operation descriptor, usually as an instance of
OperationDescriptor
.registryMode
- The JAI's registry mode (usually
"rendered").sourceTypeMap
- Mapping from JAI 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, or null
if none.
If a parameter has the same name than an operation
parameter, then the
extension overrides the later.public ImagingParameterDescriptors(java.util.Map<java.lang.String,?> properties, javax.media.jai.ParameterListDescriptor descriptor)
properties
- Set of properties. Should contains at least "name"
.descriptor
- The JAI descriptor.Method Detail |
---|
public static java.util.Map<java.lang.String,java.lang.Object> properties(javax.media.jai.RegistryElementDescriptor operation)
Key | Inferred from |
---|---|
NAME_KEY |
descriptor name |
ALIAS_KEY |
"Vendor" (for the scope) and
"LocalName" resources |
AUTHORITY_KEY |
JAI or Geotools
inferred from the vendor, extented with "DocURL"
resources as
contact information. |
VERSION_KEY |
"Version" resources |
REMARKS_KEY |
"Description" resources |
For JAI image operation (for example "Add"
, the end result is fully-qualified name
like "JAI:Add"
and one alias like "com.sun.media.jai.Add"
.
This method returns a modifiable map. Users can safely changes its content in order to select for example a different name.
public org.opengis.parameter.ParameterValueGroup createValue()
ParameterList
is created for holding parameter values, and wrapped into an ImagingParameters
instance.
createValue
in interface org.opengis.parameter.GeneralParameterDescriptor
createValue
in interface org.opengis.parameter.ParameterDescriptorGroup
createValue
in class DefaultParameterDescriptorGroup
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
equals
in class DefaultParameterDescriptorGroup
object
- The object to compare to this
.compareMetadata
- true
for performing a strict comparaison, or
false
for comparing only properties relevant to transformations.
true
if both objects are equal.public int hashCode()
hashCode
in class DefaultParameterDescriptorGroup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |