fop 0.90alpha1

org.apache.fop.pdf
Class PDFColorSpace

java.lang.Object
  |
  +--org.apache.fop.pdf.PDFColorSpace

public class PDFColorSpace
extends java.lang.Object

PDF Color space.


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
PDFColorSpace(int theColorSpace)
          Create a PDF colorspace object.
 
Method Summary
 int getColorSpace()
          Get the colorspace value
 java.lang.String getColorSpacePDFString()
          Get the PDF string for this colorspace.
 byte[] getICCProfile()
          Get the ICC profile for this colorspace
 int getNumComponents()
          Get the number of color components for this colorspace
 boolean hasICCProfile()
          Check if this colorspace has an ICC profile.
 void setColorSpace(int theColorSpace)
          Set the current colorspace.
 void setICCProfile(byte[] iccProfile)
          Set the ICC profile for this colorspace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEVICE_UNKNOWN

public static final int DEVICE_UNKNOWN
Unknown colorspace

DEVICE_GRAY

public static final int DEVICE_GRAY
Gray colorspace

DEVICE_RGB

public static final int DEVICE_RGB
RGB colorspace

DEVICE_CMYK

public static final int DEVICE_CMYK
CMYK colorspace

currentColorSpace

protected int currentColorSpace
Current color space value.
Constructor Detail

PDFColorSpace

public PDFColorSpace(int theColorSpace)
Create a PDF colorspace object.
Parameters:
theColorSpace - the current colorspace
Method Detail

setColorSpace

public void setColorSpace(int theColorSpace)
Set the current colorspace.
Parameters:
theColorSpace - the new color space value

hasICCProfile

public boolean hasICCProfile()
Check if this colorspace has an ICC profile.
Returns:
true if this has an ICC profile

getICCProfile

public byte[] getICCProfile()
Get the ICC profile for this colorspace
Returns:
the byte array containing the ICC profile data

setICCProfile

public void setICCProfile(byte[] iccProfile)
Set the ICC profile for this colorspace.
Parameters:
iccProfile - the ICC profile data

getColorSpace

public int getColorSpace()
Get the colorspace value
Returns:
the colorspace value

getNumComponents

public int getNumComponents()
Get the number of color components for this colorspace
Returns:
the number of components

getColorSpacePDFString

public java.lang.String getColorSpacePDFString()
Get the PDF string for this colorspace.
Returns:
the PDF string for the colorspace

fop 0.90alpha1

Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.