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

All Implemented Interfaces:
    COSObjectable

This class represents an Indexed color space.
Field Summary
public static final  String NAME    The name of this color space. 
public static final  String ABBREVIATED_NAME    The abbreviated name of this color space. 
Fields inherited from org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace:
array
Constructor:
 public PDIndexed() 
 public PDIndexed(COSArray indexedArray) 
    Constructor.
    Parameters:
    indexedArray - The array containing the indexed parameters
Method from org.apache.pdfbox.pdmodel.graphics.color.PDIndexed Summary:
createColorModel,   createColorSpace,   getBaseColorSpace,   getHighValue,   getName,   getNumberOfComponents,   lookupColor,   setBaseColorSpace,   setHighValue,   setLookupColor
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.PDIndexed 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 PDColorSpace getBaseColorSpace() throws IOException 
    This will get the color space that acts as the index for this color space.
 public int getHighValue() 
    Get the highest value for the lookup.
 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. This will return the number of color components in the base color.
 public int lookupColor(int lookupIndex,
    int componentNumber) throws IOException 
    This will perform a lookup into the color lookup table.
 public  void setBaseColorSpace(PDColorSpace base) 
    This will set the base color space.
 public  void setHighValue(int high) 
    This will set the highest value that is allowed. This cannot be higher than 255.
 public  void setLookupColor(int lookupIndex,
    int componentNumber,
    int color) throws IOException 
    This will set a color in the color lookup table.