Class BMPMetadata

  • All Implemented Interfaces:
    java.lang.Cloneable

    final class BMPMetadata
    extends AbstractMetadata
    BMPMetadata.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int[] colorMap  
      private DIBHeader header  
      static java.lang.String nativeMetadataFormatName
      We return metadata in the exact same form as the JRE built-in, to be compatible with the BMPImageWriter.
      • Fields inherited from class javax.imageio.metadata.IIOMetadata

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

      Constructors 
      Constructor Description
      BMPMetadata​(DIBHeader header, int[] colorMap)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private javax.imageio.metadata.IIOMetadataNode addChildNode​(javax.imageio.metadata.IIOMetadataNode parent, java.lang.String name, java.lang.Object object)  
      private void addXYZPoints​(javax.imageio.metadata.IIOMetadataNode cieXYZNode, java.lang.String color, double colorX, double colorY, double colorZ)  
      private int countMaskBits​(int mask)  
      private java.lang.String createBitsPerSampleForBitMasks()  
      private java.lang.String createListValue​(int itemCount, java.lang.String... values)  
      protected org.w3c.dom.Node getNativeTree()
      Default implementation that throws UnsupportedOperationException.
      protected javax.imageio.metadata.IIOMetadataNode getStandardChromaNode()  
      protected javax.imageio.metadata.IIOMetadataNode getStandardCompressionNode()  
      protected javax.imageio.metadata.IIOMetadataNode getStandardDataNode()  
      protected javax.imageio.metadata.IIOMetadataNode getStandardDimensionNode()  
      protected javax.imageio.metadata.IIOMetadataNode getStandardTransparencyNode()  
      • Methods inherited from class javax.imageio.metadata.IIOMetadata

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • nativeMetadataFormatName

        public static final java.lang.String nativeMetadataFormatName
        We return metadata in the exact same form as the JRE built-in, to be compatible with the BMPImageWriter.
        See Also:
        Constant Field Values
      • colorMap

        private final int[] colorMap
    • Constructor Detail

      • BMPMetadata

        BMPMetadata​(DIBHeader header,
                    int[] colorMap)
    • Method Detail

      • getNativeTree

        protected org.w3c.dom.Node getNativeTree()
        Description copied from class: AbstractMetadata
        Default implementation that throws UnsupportedOperationException. Subclasses that supports formats other than standard metadata should override this method.
        Overrides:
        getNativeTree in class AbstractMetadata
      • addXYZPoints

        private void addXYZPoints​(javax.imageio.metadata.IIOMetadataNode cieXYZNode,
                                  java.lang.String color,
                                  double colorX,
                                  double colorY,
                                  double colorZ)
      • addChildNode

        private javax.imageio.metadata.IIOMetadataNode addChildNode​(javax.imageio.metadata.IIOMetadataNode parent,
                                                                    java.lang.String name,
                                                                    java.lang.Object object)
      • getStandardChromaNode

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

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

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

        private java.lang.String createBitsPerSampleForBitMasks()
      • countMaskBits

        private int countMaskBits​(int mask)
      • createListValue

        private java.lang.String createListValue​(int itemCount,
                                                 java.lang.String... values)
      • getStandardDimensionNode

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

        protected javax.imageio.metadata.IIOMetadataNode getStandardTransparencyNode()
        Overrides:
        getStandardTransparencyNode in class javax.imageio.metadata.IIOMetadata