Class PNMMetadata

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class PNMMetadata
    extends javax.imageio.metadata.IIOMetadata
    implements java.lang.Cloneable
    Metadata for the PNM plug-in.
    • Field Summary

      • Fields inherited from class javax.imageio.metadata.IIOMetadata

        controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
    • Constructor Summary

      Constructors 
      Constructor Description
      PNMMetadata​(javax.imageio.metadata.IIOMetadata metadata)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class javax.imageio.metadata.IIOMetadata

        activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardCompressionNode, getStandardDocumentNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PNMMetadata

        public PNMMetadata​(javax.imageio.metadata.IIOMetadata metadata)
                    throws javax.imageio.metadata.IIOInvalidTreeException
        Throws:
        javax.imageio.metadata.IIOInvalidTreeException
    • Method Detail

      • clone

        protected java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • getAsTree

        public org.w3c.dom.Node getAsTree​(java.lang.String formatName)
        Specified by:
        getAsTree in class javax.imageio.metadata.IIOMetadata
      • getStandardChromaNode

        protected javax.imageio.metadata.IIOMetadataNode getStandardChromaNode()
        Overrides:
        getStandardChromaNode in class javax.imageio.metadata.IIOMetadata
      • getStandardDataNode

        protected javax.imageio.metadata.IIOMetadataNode getStandardDataNode()
        Overrides:
        getStandardDataNode in class javax.imageio.metadata.IIOMetadata
      • getStandardDimensionNode

        protected javax.imageio.metadata.IIOMetadataNode getStandardDimensionNode()
        Overrides:
        getStandardDimensionNode in class javax.imageio.metadata.IIOMetadata
      • getStandardTextNode

        protected javax.imageio.metadata.IIOMetadataNode getStandardTextNode()
        Overrides:
        getStandardTextNode in class javax.imageio.metadata.IIOMetadata
      • isReadOnly

        public boolean isReadOnly()
        Specified by:
        isReadOnly in class javax.imageio.metadata.IIOMetadata
      • mergeTree

        public void mergeTree​(java.lang.String formatName,
                              org.w3c.dom.Node root)
                       throws javax.imageio.metadata.IIOInvalidTreeException
        Specified by:
        mergeTree in class javax.imageio.metadata.IIOMetadata
        Throws:
        javax.imageio.metadata.IIOInvalidTreeException
      • setFromTree

        public void setFromTree​(java.lang.String formatName,
                                org.w3c.dom.Node root)
                         throws javax.imageio.metadata.IIOInvalidTreeException
        Overrides:
        setFromTree in class javax.imageio.metadata.IIOMetadata
        Throws:
        javax.imageio.metadata.IIOInvalidTreeException
      • reset

        public void reset()
        Specified by:
        reset in class javax.imageio.metadata.IIOMetadata
      • getFormatName

        public java.lang.String getFormatName()
      • getVariant

        public java.lang.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​(java.lang.String comment)
      • getAttribute

        public java.lang.Object getAttribute​(org.w3c.dom.Node node,
                                             java.lang.String name)