Class GIFImageMetadata
- java.lang.Object
-
- javax.imageio.metadata.IIOMetadata
-
- com.sun.media.imageioimpl.plugins.gif.GIFImageMetadata
-
public class GIFImageMetadata extends IIOMetadata
- Version:
- 0.5
-
-
Field Summary
Fields Modifier and Type Field Description List
applicationData
List
applicationIDs
List
authenticationCodes
int
characterCellHeight
int
characterCellWidth
List
comments
int
delayTime
int
disposalMethod
boolean
hasPlainTextExtension
int
imageHeight
int
imageLeftPosition
int
imageTopPosition
int
imageWidth
boolean
interlaceFlag
byte[]
localColorTable
boolean
sortFlag
byte[]
text
int
textBackgroundColor
int
textForegroundColor
int
textGridHeight
int
textGridLeft
int
textGridTop
int
textGridWidth
boolean
transparentColorFlag
int
transparentColorIndex
boolean
userInputFlag
-
Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
-
-
Constructor Summary
Constructors Modifier Constructor Description GIFImageMetadata()
protected
GIFImageMetadata(boolean standardMetadataFormatSupported, String nativeMetadataFormatName, String nativeMetadataFormatClassName, String[] extraMetadataFormatNames, String[] extraMetadataFormatClassNames)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
fatal(Node node, String reason)
Node
getAsTree(String formatName)
protected static String
getAttribute(Node node, String name)
protected static String
getAttribute(Node node, String name, String defaultValue, boolean required)
protected static boolean
getBooleanAttribute(Node node, String name)
protected static boolean
getBooleanAttribute(Node node, String name, boolean defaultValue, boolean required)
protected byte[]
getColorTable(Node colorTableNode, String entryNodeName, boolean lengthExpected, int expectedLength)
protected static int
getEnumeratedAttribute(Node node, String name, String[] legalNames)
protected static int
getEnumeratedAttribute(Node node, String name, String[] legalNames, int defaultValue, boolean required)
protected static float
getFloatAttribute(Node node, String name)
protected static float
getFloatAttribute(Node node, String name, float defaultValue, boolean required)
protected static int
getIntAttribute(Node node, String name, boolean bounded, int min, int max)
protected static int
getIntAttribute(Node node, String name, int defaultValue, boolean required, boolean bounded, int min, int max)
IIOMetadataNode
getStandardChromaNode()
IIOMetadataNode
getStandardCompressionNode()
IIOMetadataNode
getStandardDataNode()
IIOMetadataNode
getStandardDimensionNode()
IIOMetadataNode
getStandardTextNode()
IIOMetadataNode
getStandardTransparencyNode()
protected static String
getStringAttribute(Node node, String name, String defaultValue, boolean required, String[] range)
boolean
isReadOnly()
protected void
mergeNativeTree(Node root)
protected void
mergeStandardTree(Node root)
void
mergeTree(String formatName, Node root)
void
reset()
void
setFromTree(String formatName, Node root)
-
Methods inherited from class javax.imageio.metadata.IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardDocumentNode, getStandardTileNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController
-
-
-
-
Field Detail
-
imageLeftPosition
public int imageLeftPosition
-
imageTopPosition
public int imageTopPosition
-
imageWidth
public int imageWidth
-
imageHeight
public int imageHeight
-
interlaceFlag
public boolean interlaceFlag
-
sortFlag
public boolean sortFlag
-
localColorTable
public byte[] localColorTable
-
disposalMethod
public int disposalMethod
-
userInputFlag
public boolean userInputFlag
-
transparentColorFlag
public boolean transparentColorFlag
-
delayTime
public int delayTime
-
transparentColorIndex
public int transparentColorIndex
-
hasPlainTextExtension
public boolean hasPlainTextExtension
-
textGridLeft
public int textGridLeft
-
textGridTop
public int textGridTop
-
textGridWidth
public int textGridWidth
-
textGridHeight
public int textGridHeight
-
characterCellWidth
public int characterCellWidth
-
characterCellHeight
public int characterCellHeight
-
textForegroundColor
public int textForegroundColor
-
textBackgroundColor
public int textBackgroundColor
-
text
public byte[] text
-
applicationIDs
public List applicationIDs
-
authenticationCodes
public List authenticationCodes
-
applicationData
public List applicationData
-
comments
public List comments
-
-
Method Detail
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in classIIOMetadata
-
getAsTree
public Node getAsTree(String formatName)
- Specified by:
getAsTree
in classIIOMetadata
-
getStandardChromaNode
public IIOMetadataNode getStandardChromaNode()
- Overrides:
getStandardChromaNode
in classIIOMetadata
-
getStandardCompressionNode
public IIOMetadataNode getStandardCompressionNode()
- Overrides:
getStandardCompressionNode
in classIIOMetadata
-
getStandardDataNode
public IIOMetadataNode getStandardDataNode()
- Overrides:
getStandardDataNode
in classIIOMetadata
-
getStandardDimensionNode
public IIOMetadataNode getStandardDimensionNode()
- Overrides:
getStandardDimensionNode
in classIIOMetadata
-
getStandardTextNode
public IIOMetadataNode getStandardTextNode()
- Overrides:
getStandardTextNode
in classIIOMetadata
-
getStandardTransparencyNode
public IIOMetadataNode getStandardTransparencyNode()
- Overrides:
getStandardTransparencyNode
in classIIOMetadata
-
setFromTree
public void setFromTree(String formatName, Node root) throws IIOInvalidTreeException
- Overrides:
setFromTree
in classIIOMetadata
- Throws:
IIOInvalidTreeException
-
mergeNativeTree
protected void mergeNativeTree(Node root) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
mergeStandardTree
protected void mergeStandardTree(Node root) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
reset
public void reset()
- Specified by:
reset
in classIIOMetadata
-
fatal
protected static void fatal(Node node, String reason) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
getStringAttribute
protected static String getStringAttribute(Node node, String name, String defaultValue, boolean required, String[] range) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
getIntAttribute
protected static int getIntAttribute(Node node, String name, int defaultValue, boolean required, boolean bounded, int min, int max) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
getFloatAttribute
protected static float getFloatAttribute(Node node, String name, float defaultValue, boolean required) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
getIntAttribute
protected static int getIntAttribute(Node node, String name, boolean bounded, int min, int max) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
getFloatAttribute
protected static float getFloatAttribute(Node node, String name) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
getBooleanAttribute
protected static boolean getBooleanAttribute(Node node, String name, boolean defaultValue, boolean required) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
getBooleanAttribute
protected static boolean getBooleanAttribute(Node node, String name) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
getEnumeratedAttribute
protected static int getEnumeratedAttribute(Node node, String name, String[] legalNames, int defaultValue, boolean required) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
getEnumeratedAttribute
protected static int getEnumeratedAttribute(Node node, String name, String[] legalNames) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
getAttribute
protected static String getAttribute(Node node, String name, String defaultValue, boolean required) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
getAttribute
protected static String getAttribute(Node node, String name) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
mergeTree
public void mergeTree(String formatName, Node root) throws IIOInvalidTreeException
- Specified by:
mergeTree
in classIIOMetadata
- Throws:
IIOInvalidTreeException
-
getColorTable
protected byte[] getColorTable(Node colorTableNode, String entryNodeName, boolean lengthExpected, int expectedLength) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
-