public class PDFDeviceColorSpace extends java.lang.Object implements PDFColorSpace
Modifier and Type | Field and Description |
---|---|
protected int |
currentColorSpace
Current color space value.
|
static int |
DEVICE_CMYK
CMYK colorspace
|
static int |
DEVICE_GRAY
Gray colorspace
|
static int |
DEVICE_RGB
RGB colorspace
|
static int |
DEVICE_UNKNOWN
Unknown colorspace
|
Constructor and Description |
---|
PDFDeviceColorSpace(int theColorSpace)
Create a PDF colorspace object.
|
Modifier and Type | Method and Description |
---|---|
int |
getColorSpace()
Get the colorspace value
|
java.lang.String |
getName() |
int |
getNumComponents()
Get the number of color components for this colorspace
|
boolean |
isCMYKColorSpace() |
boolean |
isDeviceColorSpace() |
boolean |
isGrayColorSpace() |
boolean |
isRGBColorSpace() |
void |
setColorSpace(int theColorSpace)
Set the current colorspace.
|
public static final int DEVICE_UNKNOWN
public static final int DEVICE_GRAY
public static final int DEVICE_RGB
public static final int DEVICE_CMYK
protected int currentColorSpace
public PDFDeviceColorSpace(int theColorSpace)
theColorSpace
- the current colorspacepublic void setColorSpace(int theColorSpace)
theColorSpace
- the new color space valuepublic int getColorSpace()
public int getNumComponents()
getNumComponents
in interface PDFColorSpace
public java.lang.String getName()
getName
in interface PDFColorSpace
public boolean isDeviceColorSpace()
isDeviceColorSpace
in interface PDFColorSpace
public boolean isRGBColorSpace()
isRGBColorSpace
in interface PDFColorSpace
public boolean isCMYKColorSpace()
isCMYKColorSpace
in interface PDFColorSpace
public boolean isGrayColorSpace()
isGrayColorSpace
in interface PDFColorSpace
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.