public class PNMMetadata
extends javax.imageio.metadata.IIOMetadata
implements java.lang.Cloneable
Constructor and Description |
---|
PNMMetadata(javax.imageio.metadata.IIOMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
void |
addComment(java.lang.String comment) |
protected java.lang.Object |
clone() |
org.w3c.dom.Node |
getAsTree(java.lang.String formatName) |
java.lang.Object |
getAttribute(org.w3c.dom.Node node,
java.lang.String name) |
java.lang.String |
getFormatName() |
protected javax.imageio.metadata.IIOMetadataNode |
getStandardChromaNode() |
protected javax.imageio.metadata.IIOMetadataNode |
getStandardDataNode() |
protected javax.imageio.metadata.IIOMetadataNode |
getStandardDimensionNode() |
protected javax.imageio.metadata.IIOMetadataNode |
getStandardTextNode() |
java.lang.String |
getVariant() |
boolean |
isReadOnly() |
void |
mergeTree(java.lang.String formatName,
org.w3c.dom.Node root) |
void |
reset() |
void |
setFromTree(java.lang.String formatName,
org.w3c.dom.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(javax.imageio.metadata.IIOMetadata metadata) throws javax.imageio.metadata.IIOInvalidTreeException
javax.imageio.metadata.IIOInvalidTreeException
protected java.lang.Object clone()
clone
in class java.lang.Object
public org.w3c.dom.Node getAsTree(java.lang.String formatName)
getAsTree
in class javax.imageio.metadata.IIOMetadata
protected javax.imageio.metadata.IIOMetadataNode getStandardChromaNode()
getStandardChromaNode
in class javax.imageio.metadata.IIOMetadata
protected javax.imageio.metadata.IIOMetadataNode getStandardDataNode()
getStandardDataNode
in class javax.imageio.metadata.IIOMetadata
protected javax.imageio.metadata.IIOMetadataNode getStandardDimensionNode()
getStandardDimensionNode
in class javax.imageio.metadata.IIOMetadata
protected javax.imageio.metadata.IIOMetadataNode getStandardTextNode()
getStandardTextNode
in class javax.imageio.metadata.IIOMetadata
public boolean isReadOnly()
isReadOnly
in class javax.imageio.metadata.IIOMetadata
public void mergeTree(java.lang.String formatName, org.w3c.dom.Node root) throws javax.imageio.metadata.IIOInvalidTreeException
mergeTree
in class javax.imageio.metadata.IIOMetadata
javax.imageio.metadata.IIOInvalidTreeException
public void setFromTree(java.lang.String formatName, org.w3c.dom.Node root) throws javax.imageio.metadata.IIOInvalidTreeException
setFromTree
in class javax.imageio.metadata.IIOMetadata
javax.imageio.metadata.IIOInvalidTreeException
public void reset()
reset
in class javax.imageio.metadata.IIOMetadata
public java.lang.String getFormatName()
public java.lang.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(java.lang.String comment)
public java.lang.Object getAttribute(org.w3c.dom.Node node, java.lang.String name)
Copyright © 2014 Open Microscopy Environment