org.apache.pdfbox.pdmodel.graphics.color
Class PDDeviceCMYK

java.lang.Object
  extended by org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace
      extended by org.apache.pdfbox.pdmodel.graphics.color.PDDeviceCMYK
All Implemented Interfaces:
COSObjectable

public class PDDeviceCMYK
extends PDColorSpace

This class represents a CMYK color space.

Version:
$Revision: 1.6 $
Author:
Ben Litchfield

Field Summary
static java.lang.String ABBREVIATED_NAME
          The abbreviated name of this color space.
static PDDeviceCMYK INSTANCE
          The single instance of this class.
static java.lang.String NAME
          The name of this color space.
 
Fields inherited from class org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace
array
 
Method Summary
 java.awt.image.ColorModel createColorModel(int bpc)
          Create a Java color model for this colorspace.
protected  java.awt.color.ColorSpace createColorSpace()
          Create a Java colorspace for this colorspace.
 java.lang.String getName()
          This will return the name of the color space.
 int getNumberOfComponents()
          This will get the number of components that this color space is made up of.
 
Methods inherited from class org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace
getCOSObject, getJavaColorSpace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final PDDeviceCMYK INSTANCE
The single instance of this class.


NAME

public static final java.lang.String NAME
The name of this color space.

See Also:
Constant Field Values

ABBREVIATED_NAME

public static final java.lang.String ABBREVIATED_NAME
The abbreviated name of this color space.

See Also:
Constant Field Values
Method Detail

getName

public java.lang.String getName()
This will return the name of the color space.

Specified by:
getName in class PDColorSpace
Returns:
The name of the color space.

getNumberOfComponents

public int getNumberOfComponents()
                          throws java.io.IOException
This will get the number of components that this color space is made up of.

Specified by:
getNumberOfComponents in class PDColorSpace
Returns:
The number of components in this color space.
Throws:
java.io.IOException - If there is an error getting the number of color components.

createColorSpace

protected java.awt.color.ColorSpace createColorSpace()
Create a Java colorspace for this colorspace.

Specified by:
createColorSpace in class PDColorSpace
Returns:
A color space that can be used for Java AWT operations.

createColorModel

public java.awt.image.ColorModel createColorModel(int bpc)
                                           throws java.io.IOException
Create a Java color model for this colorspace.

Specified by:
createColorModel in class PDColorSpace
Parameters:
bpc - The number of bits per component.
Returns:
A color model that can be used for Java AWT operations.
Throws:
java.io.IOException - If there is an error creating the color model.