public class PNMMetadata extends IIOMetadata implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
private ArrayList |
comments
The comments.
|
private int |
height
The image height.
|
private int |
maxSample
The max value for the encoded/decoded image.
|
private int |
maxSampleSize
Maximum number of bits per sample (not in metadata).
|
(package private) static String |
nativeMetadataFormatName |
private int |
variant
The image variants.
|
private int |
width
The image width.
|
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported| Constructor and Description |
|---|
PNMMetadata()
Constructor containing code shared by other constructors.
|
PNMMetadata(IIOMetadata metadata) |
PNMMetadata(ImageTypeSpecifier imageType,
ImageWriteParam param)
Constructs a default image
PNMMetadata object appropriate
for the given image type and write parameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(String comment) |
protected Object |
clone() |
Node |
getAsTree(String formatName) |
Object |
getAttribute(Node node,
String name) |
(package private) Iterator |
getComments() |
String |
getFormatName() |
(package private) int |
getMaxBitDepth() |
(package private) int |
getMaxValue() |
(package private) IIOMetadataNode |
getNativeTree() |
protected IIOMetadataNode |
getStandardChromaNode() |
protected IIOMetadataNode |
getStandardDataNode() |
protected IIOMetadataNode |
getStandardDimensionNode() |
protected IIOMetadataNode |
getStandardTextNode() |
String |
getVariant() |
(package private) void |
initialize(ImageTypeSpecifier imageType,
ImageWriteParam param) |
(package private) boolean |
isRaw() |
boolean |
isReadOnly() |
private void |
mergeNativeTree(Node root) |
private void |
mergeStandardTree(Node root) |
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, setControllerstatic final String nativeMetadataFormatName
private int maxSample
private int width
private int height
private int variant
private ArrayList comments
private int maxSampleSize
PNMMetadata()
public PNMMetadata(IIOMetadata metadata) throws IIOInvalidTreeException
IIOInvalidTreeExceptionPNMMetadata(ImageTypeSpecifier imageType, ImageWriteParam param)
PNMMetadata object appropriate
for the given image type and write parameters.void initialize(ImageTypeSpecifier imageType, ImageWriteParam param)
public Node getAsTree(String formatName)
getAsTree in class IIOMetadataIIOMetadataNode getNativeTree()
protected IIOMetadataNode getStandardChromaNode()
getStandardChromaNode in class IIOMetadataprotected IIOMetadataNode getStandardDataNode()
getStandardDataNode in class IIOMetadataprotected IIOMetadataNode getStandardDimensionNode()
getStandardDimensionNode in class IIOMetadataprotected IIOMetadataNode getStandardTextNode()
getStandardTextNode in class IIOMetadatapublic boolean isReadOnly()
isReadOnly in class IIOMetadatapublic void mergeTree(String formatName, Node root) throws IIOInvalidTreeException
mergeTree in class IIOMetadataIIOInvalidTreeExceptionpublic void setFromTree(String formatName, Node root) throws IIOInvalidTreeException
setFromTree in class IIOMetadataIIOInvalidTreeExceptionpublic void reset()
reset in class IIOMetadatapublic String getFormatName()
public String getVariant()
boolean isRaw()
public void setVariant(int v)
public void setWidth(int w)
public void setHeight(int h)
int getMaxBitDepth()
int getMaxValue()
public void setMaxBitDepth(int maxValue)
maxValue - The maximum sample value. This method computes the
maximum sample size.public void addComment(String comment)
Iterator getComments()
private void mergeNativeTree(Node root) throws IIOInvalidTreeException
IIOInvalidTreeExceptionprivate void mergeStandardTree(Node root) throws IIOInvalidTreeException
IIOInvalidTreeExceptionCopyright © 2015 Open Microscopy Environment