|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.jai.tilecodec.TileCodecDescriptorImpl
An abstract class that implements the TileCodecDescriptor
interface and is suitable for subclassing. This class provides default
implementations for some of the methods from
TileCodecDescriptor. Subclasses should override these methods
if they do not wish to retain the default implementation.
All Strings are treated in a case-retentive and
case-insensitive manner.
| Constructor Summary | |
TileCodecDescriptorImpl(String formatName,
boolean includesSampleModelInfo,
boolean includesLocationInfo)
Creates a TileCodecDescriptorImpl with the given
format name and booleans to specify whether layout
information is included in the encoded stream. |
|
| Method Summary | |
boolean |
arePropertiesSupported()
Whether this descriptor supports properties. |
String |
getName()
Returns the name of the format. |
PropertyGenerator[] |
getPropertyGenerators(String modeName)
Returns an array of PropertyGenerators implementing
the property inheritance for this operation. |
String[] |
getSupportedModes()
Returns the registry modes supported by this descriptor. |
boolean |
includesLocationInfo()
Returns true if the format encodes in the data stream the location of the Raster with respect to its enclosing image. |
boolean |
includesSampleModelInfo()
Returns true if the format encodes layout information generally specified via the SampleModel in the encoded data stream. |
boolean |
isModeSupported(String registryModeName)
This method is implemented to return true if the specified registryModeName is either "tileDecoder" or "tileEncoder". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.media.jai.tilecodec.TileCodecDescriptor |
getCompatibleParameters, getDefaultParameters, getDefaultParameters |
| Methods inherited from interface javax.media.jai.RegistryElementDescriptor |
getParameterListDescriptor |
| Constructor Detail |
public TileCodecDescriptorImpl(String formatName,
boolean includesSampleModelInfo,
boolean includesLocationInfo)
TileCodecDescriptorImpl with the given
format name and booleans to specify whether layout
information is included in the encoded stream.
formatName - The name of the format. This is also
the name under which this descriptor
will be registered under in the
OperationRegistry.includesSampleModelInfo - Whether the format encodes the tile's
SampleModel or equivalent
information into the encoded stream.includesLocationInfo - Whether the format encodes the tile's
upper left corner position or equivalent
information into the encoded stream.
IllegalArgumentException - if formatName is null.| Method Detail |
public String getName()
getName in interface RegistryElementDescriptorpublic String[] getSupportedModes()
String array containing the "tileDecoder" and
"tileEncoder" strings. If the subclass does not support any of
these modes, it should override this method to return the names of
those modes that it supports.
getSupportedModes in interface RegistryElementDescriptorStrings specifying the supported modes.RegistryModepublic boolean isModeSupported(String registryModeName)
isModeSupported in interface RegistryElementDescriptorregistryModeName - The name of the registry mode to check
support for.
IllegalArgumentException - if registryModeName is null.public boolean arePropertiesSupported()
arePropertiesSupported in interface RegistryElementDescriptorPropertyGeneratorpublic PropertyGenerator[] getPropertyGenerators(String modeName)
PropertyGenerators implementing
the property inheritance for this operation. Since neither
TileEncoder or TileDecoder supports
properties, the default implementation throws an
UnsupportedOperationException. Subclasses should
override this method if they wish to produce inherited properties.
getPropertyGenerators in interface RegistryElementDescriptormodeName - the registry mode name
PropertyGenerators, or
null if this operation does not have any of
its own PropertyGenerators.
IllegalArgumentException - if modeName is null.
UnsupportedOperationException - if
arePropertiesSupported() returns falsepublic boolean includesSampleModelInfo()
SampleModel in the encoded data stream.
includesSampleModelInfo in interface TileCodecDescriptorpublic boolean includesLocationInfo()
Raster with respect to its enclosing image.
includesLocationInfo in interface TileCodecDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||