public class PDICCBased extends PDColorSpace
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name of this color space.
|
array| Constructor and Description |
|---|
PDICCBased(COSArray iccArray)
Constructor.
|
PDICCBased(PDDocument doc)
Default constructor, creates empty stream.
|
| Modifier and Type | Method and Description |
|---|---|
ColorModel |
createColorModel(int bpc)
Create a Java color model for this colorspace.
|
protected 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)
Returns 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.
|
String |
toString() |
getJavaColorSpacepublic static final String NAME
public PDICCBased(PDDocument doc)
doc - The document to store the icc data.public PDICCBased(COSArray iccArray)
iccArray - The ICC stream object.public String getName()
getName in class PDColorSpacepublic COSBase getCOSObject()
getCOSObject in interface COSObjectablegetCOSObject in class PDColorSpacepublic PDStream getPDStream()
protected 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()
getNumberOfComponents in class PDColorSpacepublic 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 forpublic 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.public String toString()
toString in class PDColorSpaceCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.