|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.pdfbox.pdmodel.graphics.color.PDColorSpace
org.pdfbox.pdmodel.graphics.color.PDICCBased
This class represents a ICC profile color space.
| Field Summary | |
static String |
NAME
The name of this color space. |
| Constructor Summary | |
PDICCBased(COSArray iccArray)
Constructor. |
|
PDICCBased(PDDocument doc)
Default constructor, creates empty stream. |
|
| Method Summary | |
ColorModel |
createColorModel(int bpc)
Create a Java color model for this colorspace. |
ColorSpace |
createColorSpace()
Create a Java colorspace for this colorspace. |
List |
getAlternateColorSpaces()
This will return a list of alternate color spaces(PDColorSpace) if the display application does not support this icc stream. |
COSBase |
getCOSObject()
Convert this standard java object to a COS object. |
COSStream |
getMetadata()
This will get the metadata stream for this object. |
String |
getName()
This will return the name of the color space. |
int |
getNumberOfComponents()
This will return the number of color components. |
PDStream |
getPDStream()
Get the pd stream for this icc color space. |
PDRange |
getRangeForComponent(int n)
This will get the range for a certain component number. |
void |
setAlternateColorSpaces(List list)
This will set the list of alternate color spaces. |
void |
setMetadata(COSStream metadata)
This will set the metadata stream that is associated with this color space. |
void |
setNumberOfComponents(int n)
This will set the number of color components. |
void |
setRangeForComponent(PDRange range,
int n)
This will set the a range for this color space. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String NAME
| Constructor Detail |
public PDICCBased(PDDocument doc)
doc - The document to store the icc data.public PDICCBased(COSArray iccArray)
iccArray - The ICC stream object.| Method Detail |
public String getName()
getName in class PDColorSpacepublic COSBase getCOSObject()
getCOSObject in interface COSObjectablegetCOSObject in class PDColorSpacepublic PDStream getPDStream()
public ColorSpace createColorSpace()
throws IOException
createColorSpace in class PDColorSpaceIOException - If there is an error creating the color space.
public ColorModel createColorModel(int bpc)
throws IOException
createColorModel in class PDColorSpacebpc - The number of bits per component.
IOException - If there is an error creating the color model.
public int getNumberOfComponents()
throws IOException
getNumberOfComponents in class PDColorSpaceIOException - If there is an error getting the number of color components.public void setNumberOfComponents(int n)
n - The number of color components.
public List getAlternateColorSpaces()
throws IOException
IOException - If there is an error getting the alternate color spaces.public void setAlternateColorSpaces(List list)
list - The list of colorspace objects.public PDRange getRangeForComponent(int n)
n - The component number to get the range for.
public void setRangeForComponent(PDRange range,
int n)
range - The new range for the a component.n - The component to set the range for.public COSStream getMetadata()
public void setMetadata(COSStream metadata)
metadata - The new metadata stream.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||