|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.pdf.PDFDeviceColorSpace
Represents a device-specific color space. Used for mapping DeviceRGB, DeviceCMYK and DeviceGray.
| Field Summary | |
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 Summary | |
PDFDeviceColorSpace(int theColorSpace)
Create a PDF colorspace object. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
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
| Constructor Detail |
public PDFDeviceColorSpace(int theColorSpace)
theColorSpace - the current colorspace| Method Detail |
public void setColorSpace(int theColorSpace)
theColorSpace - the new color space valuepublic int getColorSpace()
public int getNumComponents()
getNumComponents in interface PDFColorSpacepublic java.lang.String getName()
getName in interface PDFColorSpacepublic boolean isDeviceColorSpace()
isDeviceColorSpace in interface PDFColorSpacePDFColorSpace.isDeviceColorSpace()public boolean isRGBColorSpace()
isRGBColorSpace in interface PDFColorSpacePDFColorSpace.isRGBColorSpace()public boolean isCMYKColorSpace()
isCMYKColorSpace in interface PDFColorSpacePDFColorSpace.isCMYKColorSpace()public boolean isGrayColorSpace()
isGrayColorSpace in interface PDFColorSpacePDFColorSpace.isGrayColorSpace()
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||