it.geosolutions.imageio.plugins.pnm
Class PNMMetadata

Object
  extended by IIOMetadata
      extended by PNMMetadata
All Implemented Interfaces:
Cloneable

public class PNMMetadata
extends IIOMetadata
implements Cloneable

Metadata for the PNM plug-in.


Field Summary
 
Fields inherited from class IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
 
Constructor Summary
PNMMetadata(IIOMetadata metadata)
           
 
Method Summary
 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)
           
 
Methods inherited from class IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardCompressionNode, getStandardDocumentNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PNMMetadata

public PNMMetadata(IIOMetadata metadata)
            throws IIOInvalidTreeException
Throws:
IIOInvalidTreeException
Method Detail

clone

protected Object clone()
Overrides:
clone in class Object

getAsTree

public Node getAsTree(String formatName)
Specified by:
getAsTree in class IIOMetadata

getStandardChromaNode

protected IIOMetadataNode getStandardChromaNode()
Overrides:
getStandardChromaNode in class IIOMetadata

getStandardDataNode

protected IIOMetadataNode getStandardDataNode()
Overrides:
getStandardDataNode in class IIOMetadata

getStandardDimensionNode

protected IIOMetadataNode getStandardDimensionNode()
Overrides:
getStandardDimensionNode in class IIOMetadata

getStandardTextNode

protected IIOMetadataNode getStandardTextNode()
Overrides:
getStandardTextNode in class IIOMetadata

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in class IIOMetadata

mergeTree

public void mergeTree(String formatName,
                      Node root)
               throws IIOInvalidTreeException
Specified by:
mergeTree in class IIOMetadata
Throws:
IIOInvalidTreeException

setFromTree

public void setFromTree(String formatName,
                        Node root)
                 throws IIOInvalidTreeException
Overrides:
setFromTree in class IIOMetadata
Throws:
IIOInvalidTreeException

reset

public void reset()
Specified by:
reset in class IIOMetadata

getFormatName

public String getFormatName()

getVariant

public String getVariant()

setVariant

public void setVariant(int v)
Sets the variant: '1' - '6'.


setWidth

public void setWidth(int w)

setHeight

public void setHeight(int h)

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

public void addComment(String comment)

getAttribute

public Object getAttribute(Node node,
                           String name)


Copyright © 2006-2010 GeoSolutions. All Rights Reserved.