Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.graphics.color » [javadoc | source]
public class: PDICCBased [javadoc | source]

All Implemented Interfaces:

This class represents a ICC profile color space.
Field Summary
public static final  String NAME    The name of this color space. 
Fields inherited from org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace:
 public PDICCBased(PDDocument doc) 
    Default constructor, creates empty stream.
    doc - The document to store the icc data.
 public PDICCBased(COSArray iccArray) 
    iccArray - The ICC stream object.
Method from org.apache.pdfbox.pdmodel.graphics.color.PDICCBased Summary:
createColorModel,   createColorSpace,   getAlternateColorSpaces,   getCOSObject,   getMetadata,   getName,   getNumberOfComponents,   getPDStream,   getRangeForComponent,   setAlternateColorSpaces,   setMetadata,   setNumberOfComponents,   setRangeForComponent,   toString
Methods from org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace:
createColorModel,   createColorSpace,   getCOSObject,   getJavaColorSpace,   getName,   getNumberOfComponents,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.graphics.color.PDICCBased Detail:
 public ColorModel createColorModel(int bpc) throws IOException 
    Create a Java color model for this colorspace.
 protected ColorSpace createColorSpace() throws IOException 
    Create a Java colorspace for this colorspace.
 public List getAlternateColorSpaces() throws IOException 
    This will return a list of alternate color spaces(PDColorSpace) if the display application does not support this icc stream.
 public COSBase getCOSObject() 
    Convert this standard java object to a COS object.
 public COSStream getMetadata() 
    This will get the metadata stream for this object. Null if there is no metadata stream.
 public String getName() 
    This will return the name of the color space.
 public int getNumberOfComponents() throws IOException 
    This will return the number of color components. As of PDF 1.4 this will be 1,3,4.
 public PDStream getPDStream() 
    Get the pd stream for this icc color space.
 public PDRange getRangeForComponent(int n) 
    This will get the range for a certain component number. This is will never return null. If it is not present then the range -100 to 100 will be returned.
 public  void setAlternateColorSpaces(List list) 
    This will set the list of alternate color spaces. This should be a list of PDColorSpace objects.
 public  void setMetadata(COSStream metadata) 
    This will set the metadata stream that is associated with this color space.
 public  void setNumberOfComponents(int n) 
    This will set the number of color components.
 public  void setRangeForComponent(PDRange range,
    int n) 
    This will set the a range for this color space.
 public String toString()