DeviceCMYKColorSpace
Date: 2016-04-28

org.apache.xmlgraphics.java2d.color

## Class DeviceCMYKColorSpace

- java.lang.Object
- - java.awt.color.ColorSpace
  - - org.apache.xmlgraphics.java2d.color.AbstractDeviceSpecificColorSpace
    - - org.apache.xmlgraphics.java2d.color.DeviceCMYKColorSpace

- All Implemented Interfaces:
    java.io.Serializable, ColorSpaceOrigin

      public class DeviceCMYKColorSpace
      extends AbstractDeviceSpecificColorSpace
      implements ColorSpaceOrigin

  This class represents an uncalibrated CMYK color space.
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.lang.String` | `PSEUDO_PROFILE_NAME` The name for the uncalibrated CMYK pseudo-profile

    - ### Fields inherited from class java.awt.color.ColorSpace

      `CS_CIEXYZ, CS_GRAY, CS_LINEAR_RGB, CS_PYCC, CS_sRGB, TYPE_2CLR, TYPE_3CLR, TYPE_4CLR, TYPE_5CLR, TYPE_6CLR, TYPE_7CLR, TYPE_8CLR, TYPE_9CLR, TYPE_ACLR, TYPE_BCLR, TYPE_CCLR, TYPE_CMY, TYPE_CMYK, TYPE_DCLR, TYPE_ECLR, TYPE_FCLR, TYPE_GRAY, TYPE_HLS, TYPE_HSV, TYPE_Lab, TYPE_Luv, TYPE_RGB, TYPE_XYZ, TYPE_YCbCr, TYPE_Yxy`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DeviceCMYKColorSpace()` Constructs an uncalibrated CMYK ColorSpace object with `ColorSpace.TYPE_CMYK` and 4 components.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.awt.Color` | `createCMYKColor(float[] cmykComponents)` Creates a color instance representing a device-specific CMYK color.
    `float[]` | `fromCIEXYZ(float[] colorvalue)`
    `float[]` | `fromRGB(float[] rgbvalue)`
    `static DeviceCMYKColorSpace` | `getInstance()` Deprecated. Use `ColorSpaces.getDeviceCMYKColorSpace()` instead.
    `java.lang.String` | `getProfileName()` Returns the name of the profile used to identify the color space in a particular context.
    `java.lang.String` | `getProfileURI()` Returns the URI identifying the associate color profile.
    `float[]` | `toCIEXYZ(float[] colorvalue)`
    `float[]` | `toRGB(float[] colorvalue)`

    - ### Methods inherited from class java.awt.color.ColorSpace

      `getInstance, getMaxValue, getMinValue, getName, getNumComponents, getType, isCS_sRGB`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### PSEUDO_PROFILE_NAME

          public static final java.lang.String PSEUDO_PROFILE_NAME

      The name for the uncalibrated CMYK pseudo-profile
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### DeviceCMYKColorSpace

          public DeviceCMYKColorSpace()

      Constructs an uncalibrated CMYK ColorSpace object with `ColorSpace.TYPE_CMYK` and 4 components.
      See Also:
        `ColorSpace.ColorSpace(int, int)`

  - ### Method Detail

    - #### getInstance

          @Deprecated
          public static DeviceCMYKColorSpace getInstance()

      Deprecated. Use `ColorSpaces.getDeviceCMYKColorSpace()` instead.
      Returns an instance of an uncalibrated CMYK color space.
      Returns:
        CMYKColorSpace the requested color space object

    - #### toRGB

          public float[] toRGB(float[] colorvalue)

      Specified by:
        `toRGB` in class `java.awt.color.ColorSpace`

    - #### fromRGB

          public float[] fromRGB(float[] rgbvalue)

      Specified by:
        `fromRGB` in class `java.awt.color.ColorSpace`

    - #### toCIEXYZ

          public float[] toCIEXYZ(float[] colorvalue)

      Specified by:
        `toCIEXYZ` in class `java.awt.color.ColorSpace`

    - #### fromCIEXYZ

          public float[] fromCIEXYZ(float[] colorvalue)

      Specified by:
        `fromCIEXYZ` in class `java.awt.color.ColorSpace`

    - #### createCMYKColor

          public static java.awt.Color createCMYKColor(float[] cmykComponents)

      Creates a color instance representing a device-specific CMYK color. An sRGB value is calculated from the CMYK colors but it may not correctly represent the given CMYK values.
      Parameters:
        `cmykComponents` - the CMYK components
      Returns:
        the device-specific color

    - #### getProfileName

          public java.lang.String getProfileName()

      Returns the name of the profile used to identify the color space in a particular context.
      Specified by:
        `getProfileName` in interface `ColorSpaceOrigin`
      Returns:
        the profile name

    - #### getProfileURI

          public java.lang.String getProfileURI()

      Returns the URI identifying the associate color profile.
      Specified by:
        `getProfileURI` in interface `ColorSpaceOrigin`
      Returns:
        the profile URI