Methods Summary |
---|
private javax.imageio.metadata.IIOMetadataNode | addChildNode(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.Node | getAsTree(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.Node | getNativeTree()
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.IIOMetadataNode | getStandardChromaNode()
IIOMetadataNode node = new IIOMetadataNode("Chroma");
IIOMetadataNode subNode = new IIOMetadataNode("BlackIsZero");
subNode.setAttribute("value", "TRUE");
node.appendChild(subNode);
return node;
|
protected javax.imageio.metadata.IIOMetadataNode | getStandardDimensionNode()
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 boolean | isReadOnly()
return true;
|
public void | mergeTree(java.lang.String formatName, org.w3c.dom.Node root)
throw new IllegalStateException(I18N.getString("WBMPMetadata1"));
|
public void | reset()
throw new IllegalStateException(I18N.getString("WBMPMetadata1"));
|
public void | setFromTree(java.lang.String formatName, org.w3c.dom.Node root)
throw new IllegalStateException(I18N.getString("WBMPMetadata1"));
|