COSObjectable
public class PDICCBased extends PDColorSpace
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
NAME |
The name of this color space.
|
array
Constructor | Description |
---|---|
PDICCBased(COSArray iccArray) |
Constructor.
|
PDICCBased(PDDocument doc) |
Default constructor, creates empty stream.
|
Modifier and Type | Method | Description |
---|---|---|
java.awt.image.ColorModel |
createColorModel(int bpc) |
Create a Java color model for this colorspace.
|
protected java.awt.color.ColorSpace |
createColorSpace() |
Create a Java colorspace for this colorspace.
|
java.util.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.
|
java.lang.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(java.util.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.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getJavaColorSpace
public static final java.lang.String NAME
public PDICCBased(PDDocument doc)
doc
- The document to store the icc data.public PDICCBased(COSArray iccArray)
iccArray
- The ICC stream object.public java.lang.String getName()
getName
in class PDColorSpace
public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
getCOSObject
in class PDColorSpace
public PDStream getPDStream()
protected java.awt.color.ColorSpace createColorSpace() throws java.io.IOException
createColorSpace
in class PDColorSpace
java.io.IOException
- If there is an error creating the color space.public java.awt.image.ColorModel createColorModel(int bpc) throws java.io.IOException
createColorModel
in class PDColorSpace
bpc
- The number of bits per component.java.io.IOException
- If there is an error creating the color model.public int getNumberOfComponents()
getNumberOfComponents
in class PDColorSpace
public void setNumberOfComponents(int n)
n
- The number of color components.public java.util.List getAlternateColorSpaces() throws java.io.IOException
java.io.IOException
- If there is an error getting the alternate color spaces.public void setAlternateColorSpaces(java.util.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 java.lang.String toString()
toString
in class PDColorSpace