org.pdfbox.pdmodel.graphics.color
Class PDTristimulus
java.lang.Object
org.pdfbox.pdmodel.graphics.color.PDTristimulus
- COSObjectable
public class PDTristimulus
extends java.lang.Object
A tristimulus, or collection of three floating point parameters used for
color operations.
COSBase | getCOSObject() - Convert this standard java object to a COS object.
|
float | getX() - This will get the x value of the tristimulus.
|
float | getY() - This will get the y value of the tristimulus.
|
float | getZ() - This will get the z value of the tristimulus.
|
void | setX(float x) - This will set the x value of the tristimulus.
|
void | setY(float y) - This will set the y value of the tristimulus.
|
void | setZ(float z) - This will set the z value of the tristimulus.
|
PDTristimulus
public PDTristimulus()
Constructor. Defaults all values to 0, 0, 0.
PDTristimulus
public PDTristimulus(float[] array)
Constructor from COS object.
array
- The array containing the XYZ values.
PDTristimulus
public PDTristimulus(COSArray array)
Constructor from COS object.
array
- The array containing the XYZ values.
getCOSObject
public COSBase getCOSObject()
Convert this standard java object to a COS object.
- getCOSObject in interface COSObjectable
- The cos object that matches this Java object.
getX
public float getX()
This will get the x value of the tristimulus.
getY
public float getY()
This will get the y value of the tristimulus.
getZ
public float getZ()
This will get the z value of the tristimulus.
setX
public void setX(float x)
This will set the x value of the tristimulus.
x
- The x value for the tristimulus.
setY
public void setY(float y)
This will set the y value of the tristimulus.
y
- The y value for the tristimulus.
setZ
public void setZ(float z)
This will set the z value of the tristimulus.
z
- The z value for the tristimulus.