COSObjectable
public class PDDeviceN extends PDColorSpace
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
NAME |
The name of this color space.
|
array
Constructor | Description |
---|---|
PDDeviceN() |
Constructor.
|
PDDeviceN(COSArray csAttributes) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
COSArray |
calculateColorValues(java.util.List<COSBase> tintValues) |
Returns the components of the color in the alternate colorspace for the given tint value.
|
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.
|
PDColorSpace |
getAlternateColorSpace() |
This will get the alternate color space for this separation.
|
PDDeviceNAttributes |
getAttributes() |
This will get the attributes that are associated with the deviceN
color space.
|
java.util.List<java.lang.String> |
getColorantNames() |
This will get the colorant names.
|
COSBase |
getCOSObject() |
Convert this standard java object to a COS object.
|
java.lang.String |
getName() |
This will return the name of the color space.
|
int |
getNumberOfComponents() |
This will get the number of components that this color space is made up of.
|
PDFunction |
getTintTransform() |
This will get the tint transform function.
|
void |
setAlternateColorSpace(PDColorSpace cs) |
This will set the alternate color space.
|
void |
setAttributes(PDDeviceNAttributes attributes) |
This will set the color space attributes.
|
void |
setColorantNames(java.util.List<java.lang.String> names) |
This will set the list of colorants.
|
void |
setTintTransform(PDFunction tint) |
This will set the tint transform function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getJavaColorSpace, toString
public static final java.lang.String NAME
public PDDeviceN()
public PDDeviceN(COSArray csAttributes)
csAttributes
- The array containing all colorspace information.public COSBase getCOSObject()
PDColorSpace
getCOSObject
in interface COSObjectable
getCOSObject
in class PDColorSpace
public java.lang.String getName()
getName
in class PDColorSpace
public int getNumberOfComponents() throws java.io.IOException
getNumberOfComponents
in class PDColorSpace
java.io.IOException
- If there is an error getting the number of color components.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 java.util.List<java.lang.String> getColorantNames()
public void setColorantNames(java.util.List<java.lang.String> names)
names
- The list of colorant names.public PDColorSpace getAlternateColorSpace() throws java.io.IOException
java.io.IOException
- If there is an error getting the alternate color space.public void setAlternateColorSpace(PDColorSpace cs)
cs
- The alternate color space.public PDFunction getTintTransform() throws java.io.IOException
java.io.IOException
- if there is an error creating the function.public void setTintTransform(PDFunction tint)
tint
- The tint transform function.public PDDeviceNAttributes getAttributes()
public void setAttributes(PDDeviceNAttributes attributes)
attributes
- The color space attributes.public COSArray calculateColorValues(java.util.List<COSBase> tintValues) throws java.io.IOException
tintValues
- a list containing the tint valuesjava.io.IOException
- If the tint function is not supported