Class BMPMetadata
- java.lang.Object
-
- javax.imageio.metadata.IIOMetadata
-
- com.github.jaiimageio.impl.plugins.bmp.BMPMetadata
-
- All Implemented Interfaces:
BMPConstants
,java.lang.Cloneable
public class BMPMetadata extends javax.imageio.metadata.IIOMetadata implements java.lang.Cloneable, BMPConstants
-
-
Field Summary
Fields Modifier and Type Field Description int
alphaMask
short
bitsPerPixel
int
blue
int
blueMask
double
blueX
double
blueY
double
blueZ
java.lang.String
bmpVersion
int
colorsImportant
int
colorSpace
int
colorsUsed
java.util.List
comments
int
compression
int
gammaBlue
int
gammaGreen
int
gammaRed
int
green
int
greenMask
double
greenX
double
greenY
double
greenZ
int
height
int
imageSize
int
intent
static java.lang.String
nativeMetadataFormatName
byte[]
palette
int
paletteSize
int
red
int
redMask
double
redX
double
redY
double
redZ
int
width
int
xPixelsPerMeter
int
yPixelsPerMeter
-
Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
-
Fields inherited from interface com.github.jaiimageio.impl.plugins.bmp.BMPConstants
BI_BITFIELDS, BI_JPEG, BI_PNG, BI_RGB, BI_RLE4, BI_RLE8, compressionTypeNames, LCS_CALIBRATED_RGB, LCS_sRGB, LCS_WINDOWS_COLOR_SPACE, PROFILE_EMBEDDED, PROFILE_LINKED, VERSION_2, VERSION_3, VERSION_3_NT, VERSION_4, VERSION_5
-
-
Constructor Summary
Constructors Constructor Description BMPMetadata()
BMPMetadata(javax.imageio.metadata.IIOMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private javax.imageio.metadata.IIOMetadataNode
addChildNode(javax.imageio.metadata.IIOMetadataNode root, java.lang.String name, java.lang.Object object)
private void
addXYZPoints(javax.imageio.metadata.IIOMetadataNode root, java.lang.String name, double x, double y, double z)
java.lang.Object
clone()
private java.lang.String
countBits(int num)
private void
fatal(org.w3c.dom.Node node, java.lang.String reason)
org.w3c.dom.Node
getAsTree(java.lang.String formatName)
private java.lang.String
getAttribute(org.w3c.dom.Node node, java.lang.String name)
private java.lang.String
getAttribute(org.w3c.dom.Node node, java.lang.String name, java.lang.String defaultValue, boolean required)
private java.lang.Byte
getByteValue(org.w3c.dom.Node node)
private double
getDoubleAttribute(org.w3c.dom.Node node, java.lang.String name)
private double
getDoubleAttribute(org.w3c.dom.Node node, java.lang.String name, double defaultValue, boolean required)
private java.lang.Double
getDoubleValue(org.w3c.dom.Node node)
private int
getIntAttribute(org.w3c.dom.Node node, java.lang.String name)
private int
getIntAttribute(org.w3c.dom.Node node, java.lang.String name, int defaultValue, boolean required)
private java.lang.Integer
getIntegerValue(org.w3c.dom.Node node)
private org.w3c.dom.Node
getNativeTree()
private java.lang.Object
getObjectValue(org.w3c.dom.Node node)
private java.lang.Short
getShortValue(org.w3c.dom.Node node)
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
getStandardDocumentNode()
protected javax.imageio.metadata.IIOMetadataNode
getStandardTextNode()
protected javax.imageio.metadata.IIOMetadataNode
getStandardTransparencyNode()
private java.lang.String
getStringValue(org.w3c.dom.Node node)
(package private) void
initialize(java.awt.image.ColorModel cm, java.awt.image.SampleModel sm, javax.imageio.ImageWriteParam param)
boolean
isReadOnly()
private void
mergeNativeTree(org.w3c.dom.Node root)
private void
mergeStandardTree(org.w3c.dom.Node root)
void
mergeTree(java.lang.String formatName, org.w3c.dom.Node root)
void
reset()
-
Methods inherited from class javax.imageio.metadata.IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardTileNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController, setFromTree
-
-
-
-
Field Detail
-
nativeMetadataFormatName
public static final java.lang.String nativeMetadataFormatName
- See Also:
- Constant Field Values
-
bmpVersion
public java.lang.String bmpVersion
-
width
public int width
-
height
public int height
-
bitsPerPixel
public short bitsPerPixel
-
compression
public int compression
-
imageSize
public int imageSize
-
xPixelsPerMeter
public int xPixelsPerMeter
-
yPixelsPerMeter
public int yPixelsPerMeter
-
colorsUsed
public int colorsUsed
-
colorsImportant
public int colorsImportant
-
redMask
public int redMask
-
greenMask
public int greenMask
-
blueMask
public int blueMask
-
alphaMask
public int alphaMask
-
colorSpace
public int colorSpace
-
redX
public double redX
-
redY
public double redY
-
redZ
public double redZ
-
greenX
public double greenX
-
greenY
public double greenY
-
greenZ
public double greenZ
-
blueX
public double blueX
-
blueY
public double blueY
-
blueZ
public double blueZ
-
gammaRed
public int gammaRed
-
gammaGreen
public int gammaGreen
-
gammaBlue
public int gammaBlue
-
intent
public int intent
-
palette
public byte[] palette
-
paletteSize
public int paletteSize
-
red
public int red
-
green
public int green
-
blue
public int blue
-
comments
public java.util.List comments
-
-
Method Detail
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in classjavax.imageio.metadata.IIOMetadata
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
getAsTree
public org.w3c.dom.Node getAsTree(java.lang.String formatName)
- Specified by:
getAsTree
in classjavax.imageio.metadata.IIOMetadata
-
getNativeTree
private org.w3c.dom.Node getNativeTree()
-
getStandardChromaNode
protected javax.imageio.metadata.IIOMetadataNode getStandardChromaNode()
- Overrides:
getStandardChromaNode
in classjavax.imageio.metadata.IIOMetadata
-
getStandardCompressionNode
protected javax.imageio.metadata.IIOMetadataNode getStandardCompressionNode()
- Overrides:
getStandardCompressionNode
in classjavax.imageio.metadata.IIOMetadata
-
getStandardDataNode
protected javax.imageio.metadata.IIOMetadataNode getStandardDataNode()
- Overrides:
getStandardDataNode
in classjavax.imageio.metadata.IIOMetadata
-
getStandardDimensionNode
protected javax.imageio.metadata.IIOMetadataNode getStandardDimensionNode()
- Overrides:
getStandardDimensionNode
in classjavax.imageio.metadata.IIOMetadata
-
getStandardDocumentNode
protected javax.imageio.metadata.IIOMetadataNode getStandardDocumentNode()
- Overrides:
getStandardDocumentNode
in classjavax.imageio.metadata.IIOMetadata
-
getStandardTextNode
protected javax.imageio.metadata.IIOMetadataNode getStandardTextNode()
- Overrides:
getStandardTextNode
in classjavax.imageio.metadata.IIOMetadata
-
getStandardTransparencyNode
protected javax.imageio.metadata.IIOMetadataNode getStandardTransparencyNode()
- Overrides:
getStandardTransparencyNode
in classjavax.imageio.metadata.IIOMetadata
-
fatal
private void fatal(org.w3c.dom.Node node, java.lang.String reason) throws javax.imageio.metadata.IIOInvalidTreeException
- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getIntAttribute
private int getIntAttribute(org.w3c.dom.Node node, java.lang.String name, int defaultValue, boolean required) throws javax.imageio.metadata.IIOInvalidTreeException
- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getDoubleAttribute
private double getDoubleAttribute(org.w3c.dom.Node node, java.lang.String name, double defaultValue, boolean required) throws javax.imageio.metadata.IIOInvalidTreeException
- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getIntAttribute
private int getIntAttribute(org.w3c.dom.Node node, java.lang.String name) throws javax.imageio.metadata.IIOInvalidTreeException
- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getDoubleAttribute
private double getDoubleAttribute(org.w3c.dom.Node node, java.lang.String name) throws javax.imageio.metadata.IIOInvalidTreeException
- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getAttribute
private java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String name, java.lang.String defaultValue, boolean required) throws javax.imageio.metadata.IIOInvalidTreeException
- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
getAttribute
private java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String name) throws javax.imageio.metadata.IIOInvalidTreeException
- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
initialize
void initialize(java.awt.image.ColorModel cm, java.awt.image.SampleModel sm, javax.imageio.ImageWriteParam param)
-
mergeTree
public void mergeTree(java.lang.String formatName, org.w3c.dom.Node root) throws javax.imageio.metadata.IIOInvalidTreeException
- Specified by:
mergeTree
in classjavax.imageio.metadata.IIOMetadata
- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
mergeNativeTree
private void mergeNativeTree(org.w3c.dom.Node root) throws javax.imageio.metadata.IIOInvalidTreeException
- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
mergeStandardTree
private void mergeStandardTree(org.w3c.dom.Node root) throws javax.imageio.metadata.IIOInvalidTreeException
- Throws:
javax.imageio.metadata.IIOInvalidTreeException
-
reset
public void reset()
- Specified by:
reset
in classjavax.imageio.metadata.IIOMetadata
-
countBits
private java.lang.String countBits(int num)
-
addXYZPoints
private void addXYZPoints(javax.imageio.metadata.IIOMetadataNode root, java.lang.String name, double x, double y, double z)
-
addChildNode
private javax.imageio.metadata.IIOMetadataNode addChildNode(javax.imageio.metadata.IIOMetadataNode root, java.lang.String name, java.lang.Object object)
-
getObjectValue
private java.lang.Object getObjectValue(org.w3c.dom.Node node)
-
getStringValue
private java.lang.String getStringValue(org.w3c.dom.Node node)
-
getByteValue
private java.lang.Byte getByteValue(org.w3c.dom.Node node)
-
getShortValue
private java.lang.Short getShortValue(org.w3c.dom.Node node)
-
getIntegerValue
private java.lang.Integer getIntegerValue(org.w3c.dom.Node node)
-
getDoubleValue
private java.lang.Double getDoubleValue(org.w3c.dom.Node node)
-
-