Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.graphics.color » [javadoc | source]
org.apache.pdfbox.pdmodel.graphics.color
public class: PDCalRGB [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace
      org.apache.pdfbox.pdmodel.graphics.color.PDCalRGB

All Implemented Interfaces:
    COSObjectable

This class represents a Cal RGB 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:
array
Constructor:
 public PDCalRGB() 
 public PDCalRGB(COSArray rgb) 
    Constructor with array.
    Parameters:
    rgb - The underlying color space.
Method from org.apache.pdfbox.pdmodel.graphics.color.PDCalRGB Summary:
createColorModel,   createColorSpace,   getBlackPoint,   getCOSObject,   getGamma,   getLinearInterpretation,   getName,   getNumberOfComponents,   getWhitepoint,   setBlackPoint,   setGamma,   setLinearInterpretation,   setWhitepoint
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.PDCalRGB Detail:
 public ColorModel createColorModel(int bpc) throws IOException 
    Create a Java color model for this colorspace.
 protected ColorSpace createColorSpace() 
    Create a Java colorspace for this colorspace.
 public PDTristimulus getBlackPoint() 
    This will return the BlackPoint tristimulus. This is an optional field but has defaults so this will never return null. A default of 0,0,0 will be returned if the pdf does not have any values yet.
 public COSBase getCOSObject() 
    Convert this standard java object to a COS object.
 public PDGamma getGamma() 
    This will get the gamma value. If none is present then the default of 1,1,1 will be returned.
 public PDMatrix getLinearInterpretation() 
    This will get the linear interpretation array. This is guaranteed to not return null. If the underlying dictionary contains null then the identity matrix will be returned.
 public String getName() 
    This will return the name of the color space.
 public int getNumberOfComponents() throws IOException 
    This will get the number of components that this color space is made up of.
 public PDTristimulus getWhitepoint() 
    This will return the whitepoint tristimulus. As this is a required field this will never return null. A default of 1,1,1 will be returned if the pdf does not have any values yet.
 public  void setBlackPoint(PDTristimulus bp) 
    This will set the BlackPoint tristimulus. As this is a required field this null should not be passed into this function.
 public  void setGamma(PDGamma value) 
    Set the gamma value.
 public  void setLinearInterpretation(PDMatrix matrix) 
    This will set the linear interpretation matrix. Passing in null will clear the matrix.
 public  void setWhitepoint(PDTristimulus wp) 
    This will set the whitepoint tristimulus. As this is a required field this null should not be passed into this function.