KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > imageio > plugins > png > PNGMetadataFormatResources


1 /*
2  * @(#)PNGMetadataFormatResources.java 1.8 05/08/23
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.imageio.plugins.png;
9
10 import java.util.ListResourceBundle JavaDoc;
11
12 public class PNGMetadataFormatResources extends ListResourceBundle JavaDoc {
13
14     protected Object JavaDoc[][] getContents() {
15         return new Object JavaDoc[][] {
16
17         // Node name, followed by description
18
{ "IHDR", "The IHDR chunk, containing the header" },
19         { "PLTE", "The PLTE chunk, containing the palette" },
20         { "PLTEEntry", "A palette entry" },
21         { "bKGD", "The bKGD chunk, containing the background color" },
22         { "bKGD_RGB", "An RGB background color, for RGB and RGBAlpha images" },
23         { "bKGD_Grayscale",
24           "A grayscale background color, for Gray and GrayAlpha images" },
25         { "bKGD_Palette", "A background palette index" },
26         { "cHRM", "The cHRM chunk, containing color calibration" },
27         { "gAMA", "The gAMA chunk, containing the image gamma" },
28         { "hIST", "The hIST chunk, containing histogram information " },
29         { "hISTEntry", "A histogram entry" },
30         { "iCCP", "The iCCP chunk, containing an ICC color profile" },
31         { "iTXt", "The iTXt chunk, containing internationalized text" },
32         { "iTXtEntry", "A localized text entry" },
33         { "pHYS",
34           "The pHYS chunk, containing the pixel size and aspect ratio" },
35         { "sBIT", "The sBIT chunk, containing significant bit information" },
36         { "sBIT_Grayscale", "Significant bit information for gray samples" },
37         { "sBIT_GrayAlpha",
38           "Significant bit information for gray and alpha samples" },
39         { "sBIT_RGB", "Significant bit information for RGB samples" },
40         { "sBIT_RGBAlpha", "Significant bit information for RGBA samples" },
41         { "sBIT_Palette",
42           "Significant bit information for RGB palette entries" },
43         { "sPLT", "The sPLT chunk, containing a suggested palette" },
44         { "sPLTEntry", "A suggested palette entry" },
45         { "sRGB", "The sRGB chunk, containing rendering intent information" },
46         { "tEXt", "The tEXt chunk, containing text" },
47         { "tEXtEntry", "A text entry" },
48         { "tIME", "The tIME chunk, containing the image modification time" },
49         { "tRNS", "The tRNS chunk, containing transparency information" },
50         { "tRNS_Grayscale",
51           "A grayscale value that should be considered transparent" },
52         { "tRNS_RGB",
53           "An RGB value that should be considered transparent" },
54         { "tRNS_Palette",
55           "A palette index that should be considered transparent" },
56         { "zTXt", "The zTXt chunk, containing compressed text" },
57         { "zTXtEntry", "A compressed text entry" },
58         { "UnknownChunks", "A set of unknown chunks" },
59         { "UnknownChunk", "Unknown chunk data stored as a byte array" },
60
61         // Node name + "/" + AttributeName, followed by description
62
{ "IHDR/width", "The width of the image in pixels" },
63         { "IHDR/height", "The height of the image in pixels" },
64         { "IHDR/bitDepth", "The bit depth of the image samples" },
65         { "IHDR/colorType", "The color type of the image" },
66         { "IHDR/compressionMethod",
67 "The compression used for image data, always \"deflate\"" },
68         { "IHDR/filterMethod",
69 "The filtering method used for compression, always \"adaptive\"" },
70         { "IHDR/interlaceMethod",
71           "The interlacing method, \"none\" or \"adam7\"" },
72
73         { "PLTEEntry/index", "The index of a palette entry" },
74         { "PLTEEntry/red", "The red value of a palette entry" },
75         { "PLTEEntry/green", "The green value of a palette entry" },
76         { "PLTEEntry/blue", "The blue value of a palette entry" },
77
78         { "bKGD_Grayscale/gray", "A gray value to be used as a background" },
79         { "bKGD_RGB/red", "A red value to be used as a background" },
80         { "bKGD_RGB/green", "A green value to be used as a background" },
81         { "bKGD_RGB/blue", "A blue value to be used as a background" },
82         { "bKGD_Palette/index", "A palette index to be used as a background" },
83
84         { "cHRM/whitePointX",
85               "The CIE x coordinate of the white point, multiplied by 1e5" },
86         { "cHRM/whitePointY",
87               "The CIE y coordinate of the white point, multiplied by 1e5" },
88         { "cHRM/redX",
89               "The CIE x coordinate of the red primary, multiplied by 1e5" },
90         { "cHRM/redY",
91               "The CIE y coordinate of the red primary, multiplied by 1e5" },
92         { "cHRM/greenX",
93               "The CIE x coordinate of the green primary, multiplied by 1e5" },
94         { "cHRM/greenY",
95               "The CIE y coordinate of the green primary, multiplied by 1e5" },
96         { "cHRM/blueX",
97               "The CIE x coordinate of the blue primary, multiplied by 1e5" },
98         { "cHRM/blueY",
99               "The CIE y coordinate of the blue primary, multiplied by 1e5" },
100
101         { "gAMA/value",
102               "The image gamma, multiplied by 1e5" },
103
104         { "hISTEntry/index", "The palette index of this histogram entry" },
105         { "hISTEntry/value", "The frequency of this histogram entry" },
106
107         { "iCCP/profileName", "The name of this ICC profile" },
108         { "iCCP/compressionMethod",
109               "The compression method used to store this ICC profile" },
110
111         { "iTXtEntry/keyword", "The keyword" },
112         { "iTXtEntry/compressionMethod",
113               "The compression method used to store this iTXt entry" },
114         { "iTXtEntry/languageTag",
115               "The ISO tag describing the language this iTXt entry" },
116         { "iTXtEntry/translatedKeyword",
117               "The translated keyword for iTXt entry" },
118         { "iTXtEntry/text",
119               "The localized text" },
120
121         { "pHYS/pixelsPerUnitXAxis",
122             "The number of horizontal pixels per unit, multiplied by 1e5" },
123         { "pHYS/pixelsPerUnitYAxis",
124             "The number of vertical pixels per unit, multiplied by 1e5" },
125         { "pHYS/unitSpecifier",
126             "The unit specifier for this chunk (i.e., meters)" },
127         
128         { "sBIT_Grayscale/gray",
129             "The number of significant bits of the gray samples" },
130         { "sBIT_GrayAlpha/gray",
131             "The number of significant bits of the gray samples" },
132         { "sBIT_GrayAlpha/alpha",
133             "The number of significant bits of the alpha samples" },
134         { "sBIT_RGB/red",
135             "The number of significant bits of the red samples" },
136         { "sBIT_RGB/green",
137             "The number of significant bits of the green samples" },
138         { "sBIT_RGB/blue",
139             "The number of significant bits of the blue samples" },
140         { "sBIT_RGBAlpha/red",
141             "The number of significant bits of the red samples" },
142         { "sBIT_RGBAlpha/green",
143             "The number of significant bits of the green samples" },
144         { "sBIT_RGBAlpha/blue",
145             "The number of significant bits of the blue samples" },
146         { "sBIT_RGBAlpha/alpha",
147             "The number of significant bits of the alpha samples" },
148         { "sBIT_Palette/red",
149             "The number of significant bits of the red palette entries" },
150         { "sBIT_Palette/green",
151             "The number of significant bits of the green palette entries" },
152         { "sBIT_Palette/blue",
153             "The number of significant bits of the blue palette entries" },
154
155         { "sPLTEntry/index", "The index of a suggested palette entry" },
156         { "sPLTEntry/red", "The red value of a suggested palette entry" },
157         { "sPLTEntry/green", "The green value of a suggested palette entry" },
158         { "sPLTEntry/blue", "The blue value of a suggested palette entry" },
159         { "sPLTEntry/alpha", "The blue value of a suggested palette entry" },
160
161         { "sRGB/renderingIntent", "The rendering intent" },
162
163         { "tEXtEntry/keyword", "The keyword" },
164         { "tEXtEntry/value", "The text" },
165
166         { "tIME/year", "The year when the image was last modified" },
167         { "tIME/month",
168           "The month when the image was last modified, 1 = January" },
169         { "tIME/day",
170           "The day of the month when the image was last modified" },
171         { "tIME/hour",
172           "The hour when the image was last modified" },
173         { "tIME/minute",
174           "The minute when the image was last modified" },
175         { "tIME/second",
176           "The second when the image was last modified, 60 = leap second" },
177
178         { "tRNS_Grayscale/gray",
179           "The gray value to be considered transparent" },
180         { "tRNS_RGB/red",
181           "The red value to be considered transparent" },
182         { "tRNS_RGB/green",
183           "The green value to be considered transparent" },
184         { "tRNS_RGB/blue",
185           "The blure value to be considered transparent" },
186         { "tRNS_Palette/index",
187           "A palette index to be considered transparent" },
188         { "tRNS_Palette/alpha",
189           "The transparency associated with the palette entry" },
190
191         { "zTXtEntry/keyword", "The keyword" },
192         { "zTXtEntry/compressionMethod", "The compression method" },
193         { "zTXtEntry/text", "The compressed text" },
194
195         { "UnknownChunk/type", "The 4-character type of the unknown chunk" }
196
197         };
198     }
199 }
200
Popular Tags