1 /* Copyright (C) 2000, 2002 Free Software Foundation
3 This file is part of GNU Classpath.
5 GNU Classpath is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
10 GNU Classpath is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNU Classpath; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 Linking this library statically or dynamically with other modules is
21 making a combined work based on this library. Thus, the terms and
22 conditions of the GNU General Public License cover the whole
25 As a special exception, the copyright holders of this library give you
26 permission to link this library with independent modules to produce an
27 executable, regardless of the license terms of these independent
28 modules, and to copy and distribute the resulting executable under
29 terms of your choice, provided that you also meet, for each linked
30 independent module, the terms and conditions of the license of that
31 module. An independent module is a module which is not derived from
32 or based on this library. If you modify this library, you may extend
33 this exception to your version of the library, but you are not
34 obligated to do so. If you do not wish to do so, delete this
35 exception statement from your version. */
37 package java
.awt
.color
;
39 // Currently just a stub.
42 * @author Rolf W. Rasmussen <rolfwr@ii.uib.no>
44 public class ICC_Profile
46 public static final int CLASS_ABSTRACT
= 5;
47 public static final int CLASS_COLORSPACECONVERSION
= 4;
48 public static final int CLASS_DEVICELINK
= 3;
49 public static final int CLASS_DISPLAY
= 1;
50 public static final int CLASS_INPUT
= 0;
51 public static final int CLASS_NAMEDCOLOR
= 6;
52 public static final int CLASS_OUTPUT
= 2;
54 public static final int icAbsoluteColorimetric
= 3;
55 public static final int icCurveCount
= 8;
56 public static final int icCurveData
= 12;
57 public static final int icHdrAttributes
= 56;
58 public static final int icHdrCmmId
= 4;
59 public static final int icHdrColorSpace
= 16;
60 public static final int icHdrCreator
= 80;
61 public static final int icHdrDate
= 24;
62 public static final int icHdrDeviceClass
= 12;
63 public static final int icHdrFlags
= 44;
64 public static final int icHdrIlluminant
= 68;
65 public static final int icHdrMagic
= 36;
66 public static final int icHdrManufacturer
= 48;
67 public static final int icHdrModel
= 52;
68 public static final int icHdrPcs
= 20;
69 public static final int icHdrPlatform
= 40;
70 public static final int icHdrRenderingIntent
= 64;
71 public static final int icHdrSize
= 0;
72 public static final int icHdrVersion
= 8;
73 public static final int icPerceptual
= 0;
74 public static final int icRelativeColorimetric
= 1;
75 public static final int icSaturation
= 2;
76 public static final int icSigAbstractClass
= 1633842036;
77 public static final int icSigAToB0Tag
= 1093812784;
78 public static final int icSigAToB1Tag
= 1093812785;
79 public static final int icSigAToB2Tag
= 1093812786;
80 public static final int icSigBlueColorantTag
= 1649957210;
81 public static final int icSigBlueTRCTag
= 1649693251;
82 public static final int icSigBToA0Tag
= 1110589744;
83 public static final int icSigBToA1Tag
= 1110589745;
84 public static final int icSigBToA2Tag
= 1110589746;
85 public static final int icSigCalibrationDateTimeTag
= 1667329140;
86 public static final int icSigCharTargetTag
= 1952543335;
87 public static final int icSigChromaticityTag
= 1667789421;
88 public static final int icSigCmyData
= 1129142560;
89 public static final int icSigCmykData
= 1129142603;
90 public static final int icSigColorSpaceClass
= 1936744803;
91 public static final int icSigCopyrightTag
= 1668313716;
92 public static final int icSigCrdInfoTag
= 1668441193;
93 public static final int icSigDeviceMfgDescTag
= 1684893284;
94 public static final int icSigDeviceModelDescTag
= 1684890724;
95 public static final int icSigDeviceSettingsTag
= 1684371059;
96 public static final int icSigDisplayClass
= 1835955314;
97 public static final int icSigGamutTag
= 1734438260;
98 public static final int icSigGrayData
= 1196573017;
99 public static final int icSigGrayTRCTag
= 1800688195;
100 public static final int icSigGreenColorantTag
= 1733;
101 public static final int icSigGreenTRCTag
= 1733579331;
102 public static final int icSigHead
= 1751474532;
103 public static final int icSigHlsData
= 1212961568;
104 public static final int icSigHsvData
= 1213421088;
105 public static final int icSigInputClass
= 1935896178;
106 public static final int icSigLabData
= 1281450528;
107 public static final int icSigLinkClass
= 1818848875;
108 public static final int icSigLuminanceTag
= 1819635049;
109 public static final int icSigLuvData
= 1282766368;
110 public static final int icSigMeasurementTag
= 1835360627;
111 public static final int icSigMediaBlackPointTag
= 1651208308;
112 public static final int icSigMediaWhitePointTag
= 2004119668;
113 public static final int icSigNamedColor2Tag
= 1852009522;
114 public static final int icSigNamedColorClass
= 1852662636;
115 public static final int icSigOutputClass
= 1886549106;
116 public static final int icSigOutputResponseTag
= 1919251312;
117 public static final int icSigPreview0Tag
= 1886545200;
118 public static final int icSigPreview1Tag
= 1886545201;
119 public static final int icSigPreview2Tag
= 1886545202;
120 public static final int icSigProfileDescriptionTag
= 1684370275;
121 public static final int icSigProfileSequenceDescTag
= 1886610801;
122 public static final int icSigPs2CRD0Tag
= 1886610480;
123 public static final int icSigPs2CRD1Tag
= 1886610481;
124 public static final int icSigPs2CRD2Tag
= 1886610482;
125 public static final int icSigPs2CRD3Tag
= 1886610483;
126 public static final int icSigPs2CSATag
= 1886597747;
127 public static final int icSigPs2RenderingIntentTag
= 1886597737;
128 public static final int icSigRedColorantTag
= 1918392666;
129 public static final int icSigRedTRCTag
= 1918128707;
130 public static final int icSigRgbData
= 1380401696;
131 public static final int icSigScreeningDescTag
= 1935897188;
132 public static final int icSigScreeningTag
= 1935897198;
133 public static final int icSigSpace2CLR
= 843271250;
134 public static final int icSigSpace3CLR
= 860048466;
135 public static final int icSigSpace4CLR
= 876825682;
136 public static final int icSigSpace5CLR
= 893602898;
137 public static final int icSigSpace6CLR
= 910380114;
138 public static final int icSigSpace7CLR
= 927157330;
139 public static final int icSigSpace8CLR
= 943934546;
140 public static final int icSigSpace9CLR
= 960711762;
141 public static final int icSigSpaceACLR
= 1094929490;
142 public static final int icSigSpaceBCLR
= 1111706706;
143 public static final int icSigSpaceCCLR
= 1128483922;
144 public static final int icSigSpaceDCLR
= 1145261138;
145 public static final int icSigSpaceECLR
= 1162038354;
146 public static final int icSigSpaceFCLR
= 1178815570;
147 public static final int icSigTechnologyTag
= 1952801640;
148 public static final int icSigUcrBgTag
= 1650877472;
149 public static final int icSigViewingCondDescTag
= 1987405156;
150 public static final int icSigViewingConditionsTag
= 1986618743;
151 public static final int icSigXYZData
= 1482250784;
152 public static final int icSigYCbCrData
= 1497588338;
153 public static final int icSigYxyData
= 1501067552;
154 public static final int icTagReserved
= 4;
155 public static final int icTagType
= 0;
156 public static final int icXYZNumberX
= 8;
158 long profileID
; // why long?
160 ICC_Profile(long profileID
)
162 this.profileID
= profileID
;
165 public int getNumComponents()
167 switch ((int) profileID
)
169 case ColorSpace
.CS_sRGB
:
170 case ColorSpace
.CS_LINEAR_RGB
:
171 case ColorSpace
.CS_CIEXYZ
:
173 case ColorSpace
.CS_GRAY
:
175 case ColorSpace
.CS_PYCC
: // have no clue about this one
177 throw new UnsupportedOperationException("profile not implemented");