1. /*
  2. * @(#)GIFImageMetadataFormatResources.java 1.4 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.imageio.plugins.gif;
  8. import java.util.ListResourceBundle;
  9. import javax.imageio.metadata.IIOMetadataFormat;
  10. import javax.imageio.metadata.IIOMetadataFormatImpl;
  11. public class GIFImageMetadataFormatResources extends ListResourceBundle {
  12. static final Object[][] contents = {
  13. // Node name, followed by description
  14. { "ImageDescriptor", "The image descriptor" },
  15. { "LocalColorTable", "The local color table" },
  16. { "ColorTableEntry", "A local color table entry" },
  17. { "GraphicControlExtension", "A graphic control extension" },
  18. { "PlainTextExtension", "A plain text (text grid) extension" },
  19. { "ApplicationExtensions", "A set of application extensions" },
  20. { "ApplicationExtension", "An application extension" },
  21. { "CommentExtensions", "A set of comments" },
  22. { "CommentExtension", "A comment" },
  23. // Node name + "/" + AttributeName, followed by description
  24. { "ImageDescriptor/imageLeftPosition",
  25. "The X offset of the image relative to the screen origin" },
  26. { "ImageDescriptor/imageTopPosition",
  27. "The Y offset of the image relative to the screen origin" },
  28. { "ImageDescriptor/imageWidth",
  29. "The width of the image" },
  30. { "ImageDescriptor/imageHeight",
  31. "The height of the image" },
  32. { "ImageDescriptor/interlaceFlag",
  33. "True if the image is stored using interlacing" },
  34. { "LocalColorTable/sizeOfLocalColorTable",
  35. "The number of entries in the local color table" },
  36. { "LocalColorTable/sortFlag",
  37. "True if the local color table is sorted by frequency" },
  38. { "ColorTableEntry/index", "The index of the color table entry" },
  39. { "ColorTableEntry/red",
  40. "The red value for the color table entry" },
  41. { "ColorTableEntry/green",
  42. "The green value for the color table entry" },
  43. { "ColorTableEntry/blue",
  44. "The blue value for the color table entry" },
  45. { "GraphicControlExtension/disposalMethod",
  46. "The disposal method for this frame" },
  47. { "GraphicControlExtension/userInputFlag",
  48. "True if the frame should be advanced based on user input" },
  49. { "GraphicControlExtension/transparentColorFlag",
  50. "True if a transparent color exists" },
  51. { "GraphicControlExtension/delayTime",
  52. "The time to delay between frames, in hundredths of a second" },
  53. { "GraphicControlExtension/transparentColorIndex",
  54. "The transparent color, if transparentColorFlag is true" },
  55. { "PlainTextExtension/textGridLeft",
  56. "The X offset of the text grid" },
  57. { "PlainTextExtension/textGridTop",
  58. "The Y offset of the text grid" },
  59. { "PlainTextExtension/textGridWidth",
  60. "The number of columns in the text grid" },
  61. { "PlainTextExtension/textGridHeight",
  62. "The number of rows in the text grid" },
  63. { "PlainTextExtension/characterCellWidth",
  64. "The width of a character cell" },
  65. { "PlainTextExtension/characterCellHeight",
  66. "The height of a character cell" },
  67. { "PlainTextExtension/textForegroundColor",
  68. "The text foreground color index" },
  69. { "PlainTextExtension/textBackgroundColor",
  70. "The text background color index" },
  71. { "ApplicationExtension/applicationID",
  72. "The application ID" },
  73. { "ApplicationExtension/authenticationCode",
  74. "The authentication code" },
  75. { "CommentExtension/value", "The comment" },
  76. };
  77. public GIFImageMetadataFormatResources() {}
  78. public Object[][] getContents() {
  79. return contents;
  80. }
  81. }