| org.geotools.referencing.AbstractIdentifiedObject org.geotools.parameter.AbstractParameterDescriptor org.geotools.parameter.DefaultParameterDescriptorGroup org.geotools.parameter.ImagingParameterDescriptors
ImagingParameterDescriptors | public class ImagingParameterDescriptors extends DefaultParameterDescriptorGroup (Code) | | Wraps a JAI's
ParameterListDescriptor . This adaptor is provided for interoperability
with Java Advanced Imaging. A JAI
parameter list descriptor is part of an
.
This adaptor make it easier to access parameters for a JAI operation through the general GeoAPI
parameters framework.
since: 2.2 version: $Id: ImagingParameterDescriptors.java 27629 2007-10-26 09:59:20Z desruisseaux $ author: Martin Desruisseaux |
Field Summary | |
final public static Map | DEFAULT_SOURCE_TYPE_MAP The default source type map as a (
.class ,
.class ) key-value pair. | final protected ParameterListDescriptor | descriptor The Java Advanced Imaging parameter descriptor. | final protected RegistryElementDescriptor | operation The JAI's operation descriptor, or
null if none. | final protected String | registryMode The registry mode, usually
. |
Constructor Summary | |
public | ImagingParameterDescriptors(RegistryElementDescriptor operation) Constructs a parameter descriptor wrapping the specified JAI operation, including sources. | public | ImagingParameterDescriptors(RegistryElementDescriptor operation, Collection extension) Constructs a parameter descriptor wrapping the specified JAI operation, including sources. | public | ImagingParameterDescriptors(Map properties, RegistryElementDescriptor operation, Map sourceTypeMap, String registryMode) Constructs a parameter descriptor wrapping the specified JAI operation, including sources.
The properties map is given unchanged to the
.
Parameters: properties - Set of properties. | public | ImagingParameterDescriptors(Map properties, RegistryElementDescriptor operation, String registryMode, Map sourceTypeMap, Collection extension) Constructs a parameter descriptor wrapping the specified JAI operation, including sources.
The properties map is given unchanged to the
.
Parameters: properties - Set of properties. | public | ImagingParameterDescriptors(Map properties, ParameterListDescriptor descriptor) Constructs a parameter descriptor wrapping the specified JAI parameter list descriptor.
The properties map is given unchanged to the
.
Parameters: properties - Set of properties. |
Method Summary | |
public GeneralParameterValue | createValue() Creates a new instance of parameter value group. | public boolean | equals(AbstractIdentifiedObject object, boolean compareMetadata) Compares the specified object with this parameter group for equality.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. | public int | hashCode() Returns a hash value for this parameter. | public static Map | properties(RegistryElementDescriptor operation) Infers from the specified JAI operation a set of properties that can be given to the
. |
DEFAULT_SOURCE_TYPE_MAP | final public static Map DEFAULT_SOURCE_TYPE_MAP(Code) | | The default source type map as a (
.class ,
.class ) key-value pair. This is the default argument
for wrapping a JAI operation in the
registry mode.
|
descriptor | final protected ParameterListDescriptor descriptor(Code) | | The Java Advanced Imaging parameter descriptor. If
ImagingParameterDescriptors.operation is non-null, then
this attribute is defined by
RegistryElementDescriptor.getParameterListDescriptor .
|
operation | final protected RegistryElementDescriptor operation(Code) | | The JAI's operation descriptor, or
null if none. This is usually an
instance of
OperationDescriptor , but this is not strictly required.
|
ImagingParameterDescriptors | public ImagingParameterDescriptors(RegistryElementDescriptor operation)(Code) | | Constructs a parameter descriptor wrapping the specified JAI operation, including sources.
The
will be inferred from the
using the
ImagingParameterDescriptors.properties properties method.
The source type map default to a (
.class ,
.class ) key-value pair and the registry
mode default to
.
Parameters: operation - The JAI's operation descriptor, usually as an instance ofOperationDescriptor. |
ImagingParameterDescriptors | public ImagingParameterDescriptors(RegistryElementDescriptor operation, Collection extension)(Code) | | Constructs a parameter descriptor wrapping the specified JAI operation, including sources.
The
will be inferred from the
using the
ImagingParameterDescriptors.properties properties method.
The source type map default to a (
.class ,
.class ) key-value pair and the registry
mode default to
.
Parameters: operation - The JAI's operation descriptor, usually as an instance ofOperationDescriptor. Parameters: extension - Additional parameters to put in this descriptor, or null if none.If a parameter has the same name than an operation parameter, then theextension overrides the later. since: 2.4 |
ImagingParameterDescriptors | public ImagingParameterDescriptors(Map properties, RegistryElementDescriptor operation, Map sourceTypeMap, String registryMode)(Code) | | Constructs a parameter descriptor wrapping the specified JAI operation, including sources.
The properties map is given unchanged to the
.
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: operation - The JAI's operation descriptor, usually as an instance ofOperationDescriptor. Parameters: sourceTypeMap - Mapping from JAI source type to this group source type. Typically asingleton with the (.class ,.class ) key-value pair. Parameters: registryMode - The JAI's registry mode (usually). #ImagingParameterDescriptors(Map,
* RegistryElementDescriptor,String,Map,Collection} |
ImagingParameterDescriptors | public ImagingParameterDescriptors(Map properties, RegistryElementDescriptor operation, String registryMode, Map sourceTypeMap, Collection extension)(Code) | | Constructs a parameter descriptor wrapping the specified JAI operation, including sources.
The properties map is given unchanged to the
.
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: operation - The JAI's operation descriptor, usually as an instance ofOperationDescriptor. Parameters: registryMode - The JAI's registry mode (usually). Parameters: sourceTypeMap - Mapping from JAI source type to this group source type. Typically asingleton with the (.class ,.class ) key-value pair. Parameters: extension - Additional parameters to put in this descriptor, or null if none.If a parameter has the same name than an operation parameter, then theextension overrides the later. since: 2.4 |
ImagingParameterDescriptors | public ImagingParameterDescriptors(Map properties, ParameterListDescriptor descriptor)(Code) | | Constructs a parameter descriptor wrapping the specified JAI parameter list descriptor.
The properties map is given unchanged to the
.
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: descriptor - The JAI descriptor. |
createValue | public GeneralParameterValue createValue()(Code) | | Creates a new instance of parameter value group. A JAI
javax.media.jai.ParameterList is created for holding parameter values, and wrapped into an
ImagingParameters instance.
|
equals | public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code) | | Compares the specified object with this parameter group for equality.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. true if both objects are equal. |
hashCode | public int hashCode()(Code) | | Returns a hash value for this parameter. This value doesn't need
to be the same in past or future versions of this class.
|
properties | public static Map properties(RegistryElementDescriptor operation)(Code) | | Infers from the specified JAI operation a set of properties that can be given to the
. The returned map includes values (when available) for the following keys:
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.
|
Methods inherited from org.geotools.referencing.AbstractIdentifiedObject | protected static Set asSet(Object[] array)(Code)(Java Doc) protected static void ensureAngularUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureLinearUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object[] array, int index) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureTimeUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) final public boolean equals(Object object)(Code)(Java Doc) public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject object1, IdentifiedObject object2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject[] array1, IdentifiedObject[] array2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(Collection collection1, Collection collection2, boolean compareMetadata)(Code)(Java Doc) public Collection getAlias()(Code)(Java Doc) public ReferenceIdentifier getIdentifier(Citation authority)(Code)(Java Doc) public static ReferenceIdentifier getIdentifier(IdentifiedObject info, Citation authority)(Code)(Java Doc) public Set getIdentifiers()(Code)(Java Doc) public ReferenceIdentifier getName()(Code)(Java Doc) public String getName(Citation authority)(Code)(Java Doc) public static String getName(IdentifiedObject info, Citation authority)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info, Citation authority)(Code)(Java Doc) public InternationalString getRemarks()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean nameMatches(String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject object, String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject o1, IdentifiedObject o2)(Code)(Java Doc)
|
|
|