public class PNMMetadata extends IIOMetadata implements Cloneable
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
Constructor and Description |
---|
PNMMetadata(IIOMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
void |
addComment(String comment) |
protected Object |
clone() |
Node |
getAsTree(String formatName) |
Object |
getAttribute(Node node,
String name) |
String |
getFormatName() |
protected IIOMetadataNode |
getStandardChromaNode() |
protected IIOMetadataNode |
getStandardDataNode() |
protected IIOMetadataNode |
getStandardDimensionNode() |
protected IIOMetadataNode |
getStandardTextNode() |
String |
getVariant() |
boolean |
isReadOnly() |
void |
mergeTree(String formatName,
Node root) |
void |
reset() |
void |
setFromTree(String formatName,
Node root) |
void |
setHeight(int h) |
void |
setMaxBitDepth(int maxValue)
Set the maximum sample size and maximum sample value.
|
void |
setVariant(int v)
Sets the variant: '1' - '6'.
|
void |
setWidth(int w) |
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardCompressionNode, getStandardDocumentNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController
public PNMMetadata(IIOMetadata metadata) throws IIOInvalidTreeException
IIOInvalidTreeException
public Node getAsTree(String formatName)
getAsTree
in class IIOMetadata
protected IIOMetadataNode getStandardChromaNode()
getStandardChromaNode
in class IIOMetadata
protected IIOMetadataNode getStandardDataNode()
getStandardDataNode
in class IIOMetadata
protected IIOMetadataNode getStandardDimensionNode()
getStandardDimensionNode
in class IIOMetadata
protected IIOMetadataNode getStandardTextNode()
getStandardTextNode
in class IIOMetadata
public boolean isReadOnly()
isReadOnly
in class IIOMetadata
public void mergeTree(String formatName, Node root) throws IIOInvalidTreeException
mergeTree
in class IIOMetadata
IIOInvalidTreeException
public void setFromTree(String formatName, Node root) throws IIOInvalidTreeException
setFromTree
in class IIOMetadata
IIOInvalidTreeException
public void reset()
reset
in class IIOMetadata
public String getFormatName()
public String getVariant()
public void setVariant(int v)
public void setWidth(int w)
public void setHeight(int h)
public void setMaxBitDepth(int maxValue)
maxValue
- The maximum sample value. This method computes the
maximum sample size.public void addComment(String comment)
Copyright © 2015–2022 SCIFIO. All rights reserved.