1/*
2 * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.  Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26package com.sun.imageio.plugins.common;
27
28import java.util.ListResourceBundle;
29
30public class StandardMetadataFormatResources extends ListResourceBundle {
31
32    public StandardMetadataFormatResources() {}
33
34    protected Object[][] getContents() {
35        return new Object[][] {
36
37        // Node name, followed by description, or
38        // Node name + "/" + AttributeName, followed by description
39
40        { "Chroma", "Chroma (color) information" },
41
42        { "ColorSpaceType", "The raw color space of the image" },
43
44        { "NumChannels",
45          "The number of channels in the raw image, including alpha" },
46
47        { "Gamma", "The image gamma" },
48
49        { "BlackIsZero",
50          "True if smaller values represent darker shades"},
51
52        { "Palette", "Palette-color information" },
53
54        { "PaletteEntry", "A palette entry" },
55        { "PaletteEntry/index", "The index of the palette entry" },
56        { "PaletteEntry/red", "The red value for the palette entry" },
57        { "PaletteEntry/green", "The green value for the palette entry" },
58        { "PaletteEntry/blue", "The blue value for the palette entry" },
59        { "PaletteEntry/alpha", "The alpha value for the palette entry" },
60
61        { "BackgroundIndex", "A palette index to be used as a background" },
62
63        { "BackgroundColor", "An RGB triple to be used as a background" },
64        { "BackgroundColor/red", "The red background value" },
65        { "BackgroundColor/green", "The green background value" },
66        { "BackgroundColor/blue", "The blue background value" },
67
68        { "Compression", "Compression information" },
69
70        { "CompressionTypeName", "The name of the compression scheme in use" },
71
72        { "Lossless",
73          "True if the compression scheme is lossless" },
74
75        { "BitRate", "The estimated bit rate of the compression scheme" },
76
77        { "NumProgressiveScans",
78          "The number of progressive scans used in the image encoding"},
79
80        { "Data", "Information on the image layout" },
81
82        { "PlanarConfiguration",
83          "The organization of image samples in the stream" },
84
85        { "SampleFormat", "The numeric format of image samples" },
86
87        { "BitsPerSample", "The number of bits per sample"},
88        { "BitsPerSample/value",
89          "A list of integers, one per channel" },
90
91        { "SignificantBitsPerSample",
92          "The number of significant bits per sample"},
93        { "SignificantBitsPerSample/value",
94          "A list of integers, one per channel" },
95
96        { "SampleMSB",
97          "The position of the most significant bit of each sample"},
98        { "SampleMSB/value",
99          "A list of integers, one per channel" },
100
101        { "Dimension", "Dimension information" },
102
103        { "PixelAspectRatio", "The width of a pixel divided by its height" },
104
105        { "ImageOrientation", "The desired orientation of the image in terms of flips and counter-clockwise rotations" },
106
107        { "HorizontalPixelSize",
108  "The width of a pixel, in millimeters, as it should be rendered on media" },
109
110        { "VerticalPixelSize",
111  "The height of a pixel, in millimeters, as it should be rendered on media" },
112
113        { "HorizontalPhysicalPixelSpacing",
114          "The horizontal distance in the subject of the image, in millimeters, represented by one pixel at the center of the image" },
115
116        { "VerticalPhysicalPixelSpacing",
117          "The vertical distance in the subject of the image, in millimeters, represented by one pixel at the center of the image" },
118
119        { "HorizontalPosition",
120          "The horizontal position, in millimeters, where the image should be rendered on media " },
121
122        { "VerticalPosition",
123          "The vertical position, in millimeters, where the image should be rendered on media " },
124
125        { "HorizontalPixelOffset",
126          "The horizontal position, in pixels, where the image should be rendered onto a raster display" },
127
128        { "VerticalPixelOffset",
129          "The vertical position, in pixels, where the image should be rendered onto a raster display" },
130
131        { "HorizontalScreenSize",
132          "The width, in pixels, of the raster display into which the image should be rendered" },
133
134        { "VerticalScreenSize",
135          "The height, in pixels, of the raster display into which the image should be rendered" },
136
137        { "Document", "Document information" },
138
139        { "FormatVersion",
140          "The version of the format used by the stream" },
141
142        { "SubimageInterpretation",
143          "The interpretation of this image in relation to the other images stored in the same stream" },
144
145        { "ImageCreationTime", "The time of image creation" },
146        { "ImageCreationTime/year",
147          "The full year (e.g., 1967, not 67)" },
148        { "ImageCreationTime/month",
149          "The month, with January = 1" },
150        { "ImageCreationTime/day",
151          "The day of the month" },
152        { "ImageCreationTime/hour",
153          "The hour from 0 to 23" },
154        { "ImageCreationTime/minute",
155          "The minute from 0 to 59" },
156        { "ImageCreationTime/second",
157          "The second from 0 to 60 (60 = leap second)" },
158
159        { "ImageModificationTime", "The time of the last image modification" },
160        { "ImageModificationTime/year",
161          "The full year (e.g., 1967, not 67)" },
162        { "ImageModificationTime/month",
163          "The month, with January = 1" },
164        { "ImageModificationTime/day",
165          "The day of the month" },
166        { "ImageModificationTime/hour",
167          "The hour from 0 to 23" },
168        { "ImageModificationTime/minute",
169          "The minute from 0 to 59" },
170        { "ImageModificationTime/second",
171          "The second from 0 to 60 (60 = leap second)" },
172
173        { "Text", "Text information" },
174
175        { "TextEntry", "A text entry"},
176        { "TextEntry/keyword", "A keyword associated with the text entry" },
177        { "TextEntry/value", "the text entry" },
178        { "TextEntry/language", "The language of the text" },
179        { "TextEntry/encoding", "The encoding of the text" },
180        { "TextEntry/compression", "The method used to compress the text" },
181
182        { "Transparency", "Transparency information" },
183
184        { "Alpha", "The type of alpha information contained in the image" },
185
186        { "TransparentIndex", "A palette index to be treated as transparent" },
187
188        { "TransparentColor", "An RGB color to be treated as transparent" },
189        { "TransparentColor/red",
190          "The red channel of the transparent color" },
191        { "TransparentColor/green",
192          "The green channel of the transparent color" },
193        { "TransparentColor/blue",
194          "The blue channel of the transparent color" },
195
196        { "TileTransparencies", "A list of completely transparent tiles" },
197
198        { "TransparentTile", "The index of a completely transparent tile" },
199        { "TransparentTile/x", "The tile's X index" },
200        { "TransparentTile/y", "The tile's Y index" },
201
202        { "TileOpacities", "A list of completely opaque tiles" },
203
204        { "OpaqueTile", "The index of a completely opaque tile" },
205        { "OpaqueTile/x", "The tile's X index" },
206        { "OpaqueTile/y", "The tile's Y index" },
207
208        };
209    }
210}
211