    FOREIGN MODULE java_awt_color;

    IMPORT
        java_lang,
        java_io,
        sun_awt_color,
        java_security;

    TYPE

      CMMException* = POINTER TO EXTENSIBLE RECORD (java_lang.RuntimeException)
                      STATIC
                        PROCEDURE Init*(p0 : java_lang.String) : CMMException,CONSTRUCTOR;
                      END;

      ColorSpace* = POINTER TO ABSTRACT RECORD (java_lang.Object)
                    STATIC
                      TYPE_XYZ* = 0;
                      TYPE_Lab* = 1;
                      TYPE_Luv* = 2;
                      TYPE_YCbCr* = 3;
                      TYPE_Yxy* = 4;
                      TYPE_RGB* = 5;
                      TYPE_GRAY* = 6;
                      TYPE_HSV* = 7;
                      TYPE_HLS* = 8;
                      TYPE_CMYK* = 9;
                      TYPE_CMY* = 11;
                      TYPE_2CLR* = 12;
                      TYPE_3CLR* = 13;
                      TYPE_4CLR* = 14;
                      TYPE_5CLR* = 15;
                      TYPE_6CLR* = 16;
                      TYPE_7CLR* = 17;
                      TYPE_8CLR* = 18;
                      TYPE_9CLR* = 19;
                      TYPE_ACLR* = 20;
                      TYPE_BCLR* = 21;
                      TYPE_CCLR* = 22;
                      TYPE_DCLR* = 23;
                      TYPE_ECLR* = 24;
                      TYPE_FCLR* = 25;
                      CS_sRGB* = 1000;
                      CS_LINEAR_RGB* = 1004;
                      CS_CIEXYZ* = 1001;
                      CS_PYCC* = 1002;
                      CS_GRAY* = 1003;
                      PROCEDURE Init!(p0 : INTEGER;
                                      p1 : INTEGER) : ColorSpace,CONSTRUCTOR;
                      PROCEDURE getInstance*(p0 : INTEGER) : ColorSpace;
                    END;

      ICC_ColorSpace* = POINTER TO EXTENSIBLE RECORD (ColorSpace)
                        STATIC
                          PROCEDURE Init*(p0 : ICC_Profile) : ICC_ColorSpace,CONSTRUCTOR;
                        END;

      ICC_Profile* = POINTER TO EXTENSIBLE RECORD (java_lang.Object)
                     STATIC
                       CLASS_INPUT* = 0;
                       CLASS_DISPLAY* = 1;
                       CLASS_OUTPUT* = 2;
                       CLASS_DEVICELINK* = 3;
                       CLASS_COLORSPACECONVERSION* = 4;
                       CLASS_ABSTRACT* = 5;
                       CLASS_NAMEDCOLOR* = 6;
                       icSigXYZData* = 1482250784;
                       icSigLabData* = 1281450528;
                       icSigLuvData* = 1282766368;
                       icSigYCbCrData* = 1497588338;
                       icSigYxyData* = 1501067552;
                       icSigRgbData* = 1380401696;
                       icSigGrayData* = 1196573017;
                       icSigHsvData* = 1213421088;
                       icSigHlsData* = 1212961568;
                       icSigCmykData* = 1129142603;
                       icSigCmyData* = 1129142560;
                       icSigSpace2CLR* = 843271250;
                       icSigSpace3CLR* = 860048466;
                       icSigSpace4CLR* = 876825682;
                       icSigSpace5CLR* = 893602898;
                       icSigSpace6CLR* = 910380114;
                       icSigSpace7CLR* = 927157330;
                       icSigSpace8CLR* = 943934546;
                       icSigSpace9CLR* = 960711762;
                       icSigSpaceACLR* = 1094929490;
                       icSigSpaceBCLR* = 1111706706;
                       icSigSpaceCCLR* = 1128483922;
                       icSigSpaceDCLR* = 1145261138;
                       icSigSpaceECLR* = 1162038354;
                       icSigSpaceFCLR* = 1178815570;
                       icSigInputClass* = 1935896178;
                       icSigDisplayClass* = 1835955314;
                       icSigOutputClass* = 1886549106;
                       icSigLinkClass* = 1818848875;
                       icSigAbstractClass* = 1633842036;
                       icSigColorSpaceClass* = 1936744803;
                       icSigNamedColorClass* = 1852662636;
                       icPerceptual* = 0;
                       icRelativeColorimetric* = 1;
                       icSaturation* = 2;
                       icAbsoluteColorimetric* = 3;
                       icSigHead* = 1751474532;
                       icSigAToB0Tag* = 1093812784;
                       icSigAToB1Tag* = 1093812785;
                       icSigAToB2Tag* = 1093812786;
                       icSigBlueColorantTag* = 1649957210;
                       icSigBlueTRCTag* = 1649693251;
                       icSigBToA0Tag* = 1110589744;
                       icSigBToA1Tag* = 1110589745;
                       icSigBToA2Tag* = 1110589746;
                       icSigCalibrationDateTimeTag* = 1667329140;
                       icSigCharTargetTag* = 1952543335;
                       icSigCopyrightTag* = 1668313716;
                       icSigDeviceMfgDescTag* = 1684893284;
                       icSigDeviceModelDescTag* = 1684890724;
                       icSigGamutTag* = 1734438260;
                       icSigGrayTRCTag* = 1800688195;
                       icSigGreenColorantTag* = 1733843290;
                       icSigGreenTRCTag* = 1733579331;
                       icSigLuminanceTag* = 1819635049;
                       icSigMeasurementTag* = 1835360627;
                       icSigMediaBlackPointTag* = 1651208308;
                       icSigMediaWhitePointTag* = 2004119668;
                       icSigPreview0Tag* = 1886545200;
                       icSigPreview1Tag* = 1886545201;
                       icSigPreview2Tag* = 1886545202;
                       icSigProfileDescriptionTag* = 1684370275;
                       icSigProfileSequenceDescTag* = 1886610801;
                       icSigPs2CRD0Tag* = 1886610480;
                       icSigPs2CRD1Tag* = 1886610481;
                       icSigPs2CRD2Tag* = 1886610482;
                       icSigPs2CRD3Tag* = 1886610483;
                       icSigPs2CSATag* = 1886597747;
                       icSigPs2RenderingIntentTag* = 1886597737;
                       icSigRedColorantTag* = 1918392666;
                       icSigRedTRCTag* = 1918128707;
                       icSigScreeningDescTag* = 1935897188;
                       icSigScreeningTag* = 1935897198;
                       icSigTechnologyTag* = 1952801640;
                       icSigUcrBgTag* = 1650877472;
                       icSigViewingCondDescTag* = 1987405156;
                       icSigViewingConditionsTag* = 1986618743;
                       icSigNamedColor2Tag* = 1852009522;
                       icHdrSize* = 0;
                       icHdrCmmId* = 4;
                       icHdrVersion* = 8;
                       icHdrDeviceClass* = 12;
                       icHdrColorSpace* = 16;
                       icHdrPcs* = 20;
                       icHdrDate* = 24;
                       icHdrMagic* = 36;
                       icHdrPlatform* = 40;
                       icHdrFlags* = 44;
                       icHdrManufacturer* = 48;
                       icHdrModel* = 52;
                       icHdrAttributes* = 56;
                       icHdrRenderingIntent* = 64;
                       icHdrIlluminant* = 68;
                       icHdrCreator* = 80;
                       icTagType* = 0;
                       icTagReserved* = 4;
                       icCurveCount* = 8;
                       icCurveData* = 12;
                       icXYZNumberX* = 8;
                       PROCEDURE getInstance*(p0 : INTEGER) : ICC_Profile;
                       PROCEDURE getInstance*(p0 : java_io.InputStream) : ICC_Profile;
                       PROCEDURE getInstance*(p0 : java_lang.String) : ICC_Profile;
                       PROCEDURE getInstance*(IN  p0 : ARRAY OF BYTE) : ICC_Profile;
                     END;

      ICC_ProfileGray* = POINTER TO EXTENSIBLE RECORD (ICC_Profile)
                         END;

      ICC_ProfileRGB* = POINTER TO EXTENSIBLE RECORD (ICC_Profile)
                        STATIC
                          REDCOMPONENT* = 0;
                          GREENCOMPONENT* = 1;
                          BLUECOMPONENT* = 2;
                        END;

      ProfileDataException* = POINTER TO EXTENSIBLE RECORD (java_lang.RuntimeException)
                              STATIC
                                PROCEDURE Init*(p0 : java_lang.String) : ProfileDataException,CONSTRUCTOR;
                              END;

    PROCEDURE (self:ColorSpace) fromCIEXYZ*(IN  p0 : ARRAY OF SHORTREAL) : POINTER TO ARRAY OF SHORTREAL,NEW,ABSTRACT;

    PROCEDURE (self:ColorSpace) fromRGB*(IN  p0 : ARRAY OF SHORTREAL) : POINTER TO ARRAY OF SHORTREAL,NEW,ABSTRACT;

    PROCEDURE (self:ColorSpace) getName*(p0 : INTEGER) : java_lang.String,NEW,EXTENSIBLE;

    PROCEDURE (self:ColorSpace) getNumComponents*() : INTEGER,NEW,EXTENSIBLE;

    PROCEDURE (self:ColorSpace) getType*() : INTEGER,NEW,EXTENSIBLE;

    PROCEDURE (self:ColorSpace) isCS_sRGB*() : BOOLEAN,NEW,EXTENSIBLE;

    PROCEDURE (self:ColorSpace) toCIEXYZ*(IN  p0 : ARRAY OF SHORTREAL) : POINTER TO ARRAY OF SHORTREAL,NEW,ABSTRACT;

    PROCEDURE (self:ColorSpace) toRGB*(IN  p0 : ARRAY OF SHORTREAL) : POINTER TO ARRAY OF SHORTREAL,NEW,ABSTRACT;

    PROCEDURE (self:ICC_ColorSpace) fromCIEXYZ*(IN  p0 : ARRAY OF SHORTREAL) : POINTER TO ARRAY OF SHORTREAL,EXTENSIBLE;

    PROCEDURE (self:ICC_ColorSpace) fromRGB*(IN  p0 : ARRAY OF SHORTREAL) : POINTER TO ARRAY OF SHORTREAL,EXTENSIBLE;

    PROCEDURE (self:ICC_ColorSpace) getProfile*() : ICC_Profile,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_ColorSpace) toCIEXYZ*(IN  p0 : ARRAY OF SHORTREAL) : POINTER TO ARRAY OF SHORTREAL,EXTENSIBLE;

    PROCEDURE (self:ICC_ColorSpace) toRGB*(IN  p0 : ARRAY OF SHORTREAL) : POINTER TO ARRAY OF SHORTREAL,EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) finalize!(),EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) getColorSpaceType*() : INTEGER,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) getData*() : POINTER TO ARRAY OF BYTE,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) getData*(p0 : INTEGER) : POINTER TO ARRAY OF BYTE,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) getMajorVersion*() : INTEGER,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) getMinorVersion*() : INTEGER,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) getNumComponents*() : INTEGER,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) getPCSType*() : INTEGER,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) getProfileClass*() : INTEGER,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) setData*(    p0 : INTEGER;
                                          IN  p1 : ARRAY OF BYTE),NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) write*(p0 : java_io.OutputStream),NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_Profile) write*(p0 : java_lang.String),NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_ProfileGray) getGamma*() : SHORTREAL,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_ProfileGray) getMediaWhitePoint*() : POINTER TO ARRAY OF SHORTREAL,EXTENSIBLE;

    PROCEDURE (self:ICC_ProfileGray) getTRC*() : POINTER TO ARRAY OF SHORTINT,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_ProfileRGB) getGamma*(p0 : INTEGER) : SHORTREAL,EXTENSIBLE;

    PROCEDURE (self:ICC_ProfileRGB) getMatrix*() : POINTER TO ARRAY OF SHORTREAL,NEW,EXTENSIBLE;

    PROCEDURE (self:ICC_ProfileRGB) getMediaWhitePoint*() : POINTER TO ARRAY OF SHORTREAL,EXTENSIBLE;

    PROCEDURE (self:ICC_ProfileRGB) getTRC*(p0 : INTEGER) : POINTER TO ARRAY OF SHORTINT,EXTENSIBLE;

    END java_awt_color.