FileDocCategorySizeDatePackage
WBMPMetadata.javaAPI DocJava SE 5 API3486Fri Aug 26 14:54:44 BST 2005com.sun.imageio.plugins.wbmp

WBMPMetadata

public class WBMPMetadata extends IIOMetadata

Fields Summary
static final String
nativeMetadataFormatName
public int
wbmpType
public int
width
public int
height
Constructors Summary
public WBMPMetadata()


      
        super(true,
              nativeMetadataFormatName,
              "com.sun.imageio.plugins.wbmp.WBMPMetadataFormat",
              null, null);
    
Methods Summary
private javax.imageio.metadata.IIOMetadataNodeaddChildNode(javax.imageio.metadata.IIOMetadataNode root, java.lang.String name, java.lang.Object object)

        IIOMetadataNode child = new IIOMetadataNode(name);
        if (object != null) {
            child.setUserObject(object);
            child.setNodeValue(ImageUtil.convertObjectToString(object));
        }
        root.appendChild(child);
        return child;
    
public org.w3c.dom.NodegetAsTree(java.lang.String formatName)

        if (formatName.equals(nativeMetadataFormatName)) {
            return getNativeTree();
        } else if (formatName.equals
                   (IIOMetadataFormatImpl.standardMetadataFormatName)) {
            return getStandardTree();
        } else {
            throw new IllegalArgumentException(I18N.getString("WBMPMetadata0"));
        }
    
private org.w3c.dom.NodegetNativeTree()

        IIOMetadataNode root =
            new IIOMetadataNode(nativeMetadataFormatName);

        addChildNode(root, "WBMPType", new Integer(wbmpType));
        addChildNode(root, "Width", new Integer(width));
        addChildNode(root, "Height", new Integer(height));
        
        return root;
    
protected javax.imageio.metadata.IIOMetadataNodegetStandardChromaNode()


        IIOMetadataNode node = new IIOMetadataNode("Chroma");
        IIOMetadataNode subNode = new IIOMetadataNode("BlackIsZero");
        subNode.setAttribute("value", "TRUE");
        
        node.appendChild(subNode);
        return node;
    
protected javax.imageio.metadata.IIOMetadataNodegetStandardDimensionNode()

        IIOMetadataNode dimension_node = new IIOMetadataNode("Dimension");
        IIOMetadataNode node = null; // scratch node

        // PixelAspectRatio not in image

        node = new IIOMetadataNode("ImageOrientation");
        node.setAttribute("value", "Normal");
        dimension_node.appendChild(node);

        return dimension_node;
    
public booleanisReadOnly()

        return true;
    
public voidmergeTree(java.lang.String formatName, org.w3c.dom.Node root)

        throw new IllegalStateException(I18N.getString("WBMPMetadata1"));
    
public voidreset()

        throw new IllegalStateException(I18N.getString("WBMPMetadata1"));
    
public voidsetFromTree(java.lang.String formatName, org.w3c.dom.Node root)

        throw new IllegalStateException(I18N.getString("WBMPMetadata1"));