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

All Implemented Interfaces:
    COSObjectable

This class represents a Lab 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 PDLab() 
 public PDLab(COSArray lab) 
    Constructor with array.
    Parameters:
    lab - The underlying color space.
Method from org.apache.pdfbox.pdmodel.graphics.color.PDLab Summary:
createColorModel,   createColorSpace,   getARange,   getBRange,   getBlackPoint,   getCOSObject,   getName,   getNumberOfComponents,   getWhitepoint,   setARange,   setBRange,   setBlackPoint,   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.PDLab 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 PDRange getARange() 
    This will get the valid range for the a component. If none is found then the default will be returned, which is -100 to 100.
 public PDRange getBRange() 
    This will get the valid range for the b component. If none is found then the default will be returned, which is -100 to 100.
 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 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 setARange(PDRange range) 
    This will set the a range for this color space.
 public  void setBRange(PDRange range) 
    This will set the b range for this color space.
 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 setWhitepoint(PDTristimulus wp) 
    This will set the whitepoint tristimulus. As this is a required field this null should not be passed into this function.