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, setController
static 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
IIOInvalidTreeException
PNMMetadata(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 IIOMetadata
IIOMetadataNode getNativeTree()
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()
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
IIOInvalidTreeException
private void mergeStandardTree(Node root) throws IIOInvalidTreeException
IIOInvalidTreeException
Copyright © 2017 Open Microscopy Environment