Class PNMMetadata
java.lang.Object
javax.imageio.metadata.IIOMetadata
com.github.jaiimageio.impl.plugins.pnm.PNMMetadata
- All Implemented Interfaces:
Cloneable
Metadata for the PNM plug-in.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayListThe comments.private intThe image height.private intThe max value for the encoded/decoded image.private intMaximum number of bits per sample (not in metadata).(package private) static final Stringprivate intThe image variants.private intThe image width.Fields inherited from class IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported -
Constructor Summary
ConstructorsConstructorDescriptionConstructor containing code shared by other constructors.PNMMetadata(ImageTypeSpecifier imageType, ImageWriteParam param) Constructs a default imagePNMMetadataobject appropriate for the given image type and write parameters.PNMMetadata(IIOMetadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComment(String comment) protected Objectclone()getAttribute(Node node, String name) (package private) Iterator(package private) int(package private) int(package private) IIOMetadataNodeprotected IIOMetadataNodeprotected IIOMetadataNodeprotected IIOMetadataNodeprotected IIOMetadataNode(package private) voidinitialize(ImageTypeSpecifier imageType, ImageWriteParam param) (package private) booleanisRaw()booleanprivate voidmergeNativeTree(Node root) private voidmergeStandardTree(Node root) voidvoidreset()voidsetFromTree(String formatName, Node root) voidsetHeight(int h) voidsetMaxBitDepth(int maxValue) Set the maximum sample size and maximum sample value.voidsetVariant(int v) Sets the variant: '1' - '6'.voidsetWidth(int w) Methods inherited from class IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardCompressionNode, getStandardDocumentNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController
-
Field Details
-
nativeMetadataFormatName
- See Also:
-
maxSample
private int maxSampleThe max value for the encoded/decoded image. -
width
private int widthThe image width. -
height
private int heightThe image height. -
variant
private int variantThe image variants. -
comments
The comments. -
maxSampleSize
private int maxSampleSizeMaximum number of bits per sample (not in metadata).
-
-
Constructor Details
-
PNMMetadata
PNMMetadata()Constructor containing code shared by other constructors. -
PNMMetadata
- Throws:
IIOInvalidTreeException
-
PNMMetadata
PNMMetadata(ImageTypeSpecifier imageType, ImageWriteParam param) Constructs a default imagePNMMetadataobject appropriate for the given image type and write parameters.
-
-
Method Details
-
initialize
-
clone
-
getAsTree
- Specified by:
getAsTreein classIIOMetadata
-
getNativeTree
IIOMetadataNode getNativeTree() -
getStandardChromaNode
- Overrides:
getStandardChromaNodein classIIOMetadata
-
getStandardDataNode
- Overrides:
getStandardDataNodein classIIOMetadata
-
getStandardDimensionNode
- Overrides:
getStandardDimensionNodein classIIOMetadata
-
getStandardTextNode
- Overrides:
getStandardTextNodein classIIOMetadata
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classIIOMetadata
-
mergeTree
- Specified by:
mergeTreein classIIOMetadata- Throws:
IIOInvalidTreeException
-
setFromTree
- Overrides:
setFromTreein classIIOMetadata- Throws:
IIOInvalidTreeException
-
reset
public void reset()- Specified by:
resetin classIIOMetadata
-
getFormatName
-
getVariant
-
isRaw
boolean isRaw() -
setVariant
public void setVariant(int v) Sets the variant: '1' - '6'. -
setWidth
public void setWidth(int w) -
setHeight
public void setHeight(int h) -
getMaxBitDepth
int getMaxBitDepth() -
getMaxValue
int getMaxValue() -
setMaxBitDepth
public void setMaxBitDepth(int maxValue) Set the maximum sample size and maximum sample value.- Parameters:
maxValue- The maximum sample value. This method computes the maximum sample size.
-
addComment
-
getComments
Iterator getComments() -
mergeNativeTree
- Throws:
IIOInvalidTreeException
-
mergeStandardTree
- Throws:
IIOInvalidTreeException
-
getAttribute
-