FileDocCategorySizeDatePackage
ICC_ProfileStub.javaAPI DocAndroid 1.5 API5950Wed May 06 22:41:54 BST 2009java.awt.color

ICC_ProfileStub

public final class ICC_ProfileStub extends ICC_Profile
author
Oleg V. Khaschansky
version
$Revision$

Fields Summary
private static final long
serialVersionUID
transient int
colorspace
Constructors Summary
public ICC_ProfileStub(int csSpecifier)


       
        switch (csSpecifier) {
            case ColorSpace.CS_sRGB:
            case ColorSpace.CS_CIEXYZ:
            case ColorSpace.CS_LINEAR_RGB:
            case ColorSpace.CS_PYCC:
            case ColorSpace.CS_GRAY:
                break;
            default:
                // awt.15D=Invalid colorspace
                throw new IllegalArgumentException(Messages.getString("awt.15D")); //$NON-NLS-1$
        }
        colorspace = csSpecifier;
    
Methods Summary
protected voidfinalize()

    
public intgetColorSpaceType()

        switch (colorspace) {
            case ColorSpace.CS_sRGB:
            case ColorSpace.CS_LINEAR_RGB:
                return ColorSpace.TYPE_RGB;
            case ColorSpace.CS_CIEXYZ:
                return ColorSpace.TYPE_XYZ;
            case ColorSpace.CS_PYCC:
                return ColorSpace.TYPE_3CLR;
            case ColorSpace.CS_GRAY:
                return ColorSpace.TYPE_GRAY;
            default:
                throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
        }
    
public byte[]getData(int tagSignature)

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
public byte[]getData()

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
public static java.awt.color.ICC_ProfilegetInstance(java.lang.String fileName)

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
public static java.awt.color.ICC_ProfilegetInstance(java.io.InputStream s)

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
public static java.awt.color.ICC_ProfilegetInstance(byte[] data)

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
public static java.awt.color.ICC_ProfilegetInstance(int cspace)

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
public intgetMajorVersion()

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
public intgetMinorVersion()

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
public intgetNumComponents()

        switch (colorspace) {
            case ColorSpace.CS_sRGB:
            case ColorSpace.CS_CIEXYZ:
            case ColorSpace.CS_LINEAR_RGB:
            case ColorSpace.CS_PYCC:
                return 3;
            case ColorSpace.CS_GRAY:
                return 1;
            default:
                throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
        }
    
public intgetPCSType()

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
public intgetProfileClass()

        return CLASS_COLORSPACECONVERSION;
    
public java.awt.color.ICC_ProfileloadProfile()

        switch (colorspace) {
            case ColorSpace.CS_sRGB:
                return ICC_Profile.getInstance(ColorSpace.CS_sRGB);
            case ColorSpace.CS_GRAY:
                return ICC_Profile.getInstance(ColorSpace.CS_GRAY);
            case ColorSpace.CS_CIEXYZ:
                return ICC_Profile.getInstance(ColorSpace.CS_CIEXYZ);
            case ColorSpace.CS_LINEAR_RGB:
                return ICC_Profile.getInstance(ColorSpace.CS_LINEAR_RGB);
            case ColorSpace.CS_PYCC:
                return ICC_Profile.getInstance(ColorSpace.CS_PYCC);
            default:
                throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
        }
    
public voidsetData(int tagSignature, byte[] tagData)

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
public voidwrite(java.lang.String fileName)

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
public voidwrite(java.io.OutputStream s)

        throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
    
private java.lang.ObjectwriteReplace()
Serializable implementation

throws
ObjectStreamException

        return loadProfile();