Class GIFImageMetadata
java.lang.Object
javax.imageio.metadata.IIOMetadata
com.sun.media.imageioimpl.plugins.gif.GIFImageMetadata
- Version:
- 0.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintintintbooleanintintintintbooleanbyte[]booleanbyte[]intintintintintintbooleanintbooleanFields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGIFImageMetadata(boolean standardMetadataFormatSupported, String nativeMetadataFormatName, String nativeMetadataFormatClassName, String[] extraMetadataFormatNames, String[] extraMetadataFormatClassNames) -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidprotected static StringgetAttribute(Node node, String name) protected static StringgetAttribute(Node node, String name, String defaultValue, boolean required) protected static booleangetBooleanAttribute(Node node, String name) protected static booleangetBooleanAttribute(Node node, String name, boolean defaultValue, boolean required) protected byte[]getColorTable(Node colorTableNode, String entryNodeName, boolean lengthExpected, int expectedLength) protected static intgetEnumeratedAttribute(Node node, String name, String[] legalNames) protected static intgetEnumeratedAttribute(Node node, String name, String[] legalNames, int defaultValue, boolean required) protected static floatgetFloatAttribute(Node node, String name) protected static floatgetFloatAttribute(Node node, String name, float defaultValue, boolean required) protected static intgetIntAttribute(Node node, String name, boolean bounded, int min, int max) protected static intgetIntAttribute(Node node, String name, int defaultValue, boolean required, boolean bounded, int min, int max) protected static StringgetStringAttribute(Node node, String name, String defaultValue, boolean required, String[] range) booleanprotected voidmergeNativeTree(Node root) protected voidmergeStandardTree(Node root) voidvoidreset()voidsetFromTree(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 Details
-
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
-
authenticationCodes
-
applicationData
-
comments
-
-
Constructor Details
-
GIFImageMetadata
-
GIFImageMetadata
public GIFImageMetadata()
-
-
Method Details
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classIIOMetadata
-
getAsTree
- Specified by:
getAsTreein classIIOMetadata
-
getStandardChromaNode
- Overrides:
getStandardChromaNodein classIIOMetadata
-
getStandardCompressionNode
- Overrides:
getStandardCompressionNodein classIIOMetadata
-
getStandardDataNode
- Overrides:
getStandardDataNodein classIIOMetadata
-
getStandardDimensionNode
- Overrides:
getStandardDimensionNodein classIIOMetadata
-
getStandardTextNode
- Overrides:
getStandardTextNodein classIIOMetadata
-
getStandardTransparencyNode
- Overrides:
getStandardTransparencyNodein classIIOMetadata
-
setFromTree
- Overrides:
setFromTreein classIIOMetadata- Throws:
IIOInvalidTreeException
-
mergeNativeTree
- Throws:
IIOInvalidTreeException
-
mergeStandardTree
- Throws:
IIOInvalidTreeException
-
reset
public void reset()- Specified by:
resetin classIIOMetadata
-
fatal
- 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
- Throws:
IIOInvalidTreeException
-
getBooleanAttribute
protected static boolean getBooleanAttribute(Node node, String name, boolean defaultValue, boolean required) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-
getBooleanAttribute
- 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
- Throws:
IIOInvalidTreeException
-
mergeTree
- Specified by:
mergeTreein classIIOMetadata- Throws:
IIOInvalidTreeException
-
getColorTable
protected byte[] getColorTable(Node colorTableNode, String entryNodeName, boolean lengthExpected, int expectedLength) throws IIOInvalidTreeException - Throws:
IIOInvalidTreeException
-