COSObjectable
public class PDLab extends PDColorSpace
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
NAME |
The name of this color space.
|
Constructor | Description |
---|---|
PDLab() |
Constructor.
|
PDLab(COSArray lab) |
Constructor with array.
|
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.
|
PDRange |
getARange() |
This will get the valid range for the "a" component.
|
PDTristimulus |
getBlackPoint() |
This will return the BlackPoint tristimulus.
|
PDRange |
getBRange() |
This will get the valid range for the "b" component.
|
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.
|
PDTristimulus |
getWhitePoint() |
This will return the whitepoint tristimulus.
|
void |
setARange(PDRange range) |
This will set the a range for the "a" component.
|
void |
setBlackPoint(PDTristimulus bp) |
This will set the BlackPoint tristimulus.
|
void |
setBRange(PDRange range) |
This will set the "b" range for this color space.
|
void |
setWhitePoint(PDTristimulus wp) |
This will set the whitepoint tristimulus.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getJavaColorSpace, toString
public static final java.lang.String NAME
public PDLab()
public PDLab(COSArray lab)
lab
- The underlying color space.public java.lang.String getName()
getName
in class PDColorSpace
public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
getCOSObject
in class PDColorSpace
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() throws java.io.IOException
getNumberOfComponents
in class PDColorSpace
java.io.IOException
- If there is an error getting the number of color components.public PDTristimulus getWhitePoint()
public void setWhitePoint(PDTristimulus wp)
wp
- The whitepoint tristimulus.public PDTristimulus getBlackPoint()
public void setBlackPoint(PDTristimulus bp)
bp
- The BlackPoint tristimulus.public PDRange getARange()
public void setARange(PDRange range)
range
- the new range for the "a" component,
or null if defaults (-100..100) are to be set.public PDRange getBRange()
public void setBRange(PDRange range)
range
- the new range for the "b" component,
or null if defaults (-100..100) are to be set.