|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFDeviceColorSpace
public class 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 colorspaceMethod Detail |
---|
public 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
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |