CIEColor Class
A CIE-based color defined by X, Y, and Z tristimulus values.
Declaration
public class CIEColor extends JavaObject implements ICloneable
Implements
Inherited Members
Inheritance
Constructors
CIEColor() Constructor
Initializes a new instance of the CIEColor class.
Declaration
public CIEColor()
CIEColor(double x, double y, double z) Constructor
Initializes a new instance of the CIEColor class with specified tristimulus values.
Declaration
public CIEColor(double x, double y, double z)
Parameters
| Name | Type | Description |
|---|---|---|
| x | double | The X tristimulus value. |
| y | double | The Y tristimulus value. |
| z | double | The Z tristimulus value. |
Methods
deepClone() Method
Returns a deep copy of this CIEColor instance.
Declaration
public CIEColor deepClone()
Returns
| Type | Description |
|---|---|
CIEColor |
A deep copy of this |
getX() Method
Returns the X tristimulus value.
Declaration
public double getX()
Returns
| Type | Description |
|---|---|
| double | The X tristimulus value. |
getY() Method
Returns the Y tristimulus value.
Declaration
public double getY()
Returns
| Type | Description |
|---|---|
| double | The Y tristimulus value. |
getZ() Method
Returns the Z tristimulus value.
Declaration
public double getZ()
Returns
| Type | Description |
|---|---|
| double | The Z tristimulus value. |
objectClone() Method
Creates a copy of the CIE-based color object.
Declaration
public Object objectClone()
Returns
| Type | Description |
|---|---|
| Object | A copy of the CIE-based color object. |
setX(double value) Method
Sets the X tristimulus value.
Declaration
public void setX(double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double | The X tristimulus value. |
setY(double value) Method
Sets the Y tristimulus value.
Declaration
public void setY(double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double | The Y tristimulus value. |
setZ(double value) Method
Sets the Z tristimulus value.
Declaration
public void setZ(double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double | The Z tristimulus value. |