Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.graphics.color

public final Class PDGamma

extends Object
implements COSObjectable
Class Inheritance
All Implemented Interfaces
org.apache.pdfbox.pdmodel.common.COSObjectable
Imports
org.apache.pdfbox.cos.COSArray, .COSBase, .COSFloat, .COSNumber, org.apache.pdfbox.pdmodel.common.COSObjectable

A gamma array, or collection of three floating point parameters used for color operations.
Author
Ben Litchfield

Field Summary

Modifier and TypeField and Description
private final COSArray

Constructor Summary

AccessConstructor and Description
public
PDGamma()

Creates a new gamma.

public
PDGamma(COSArray
the array containing the XYZ values
array
)

Creates a new gamma from a COS array.

Method Summary

Modifier and TypeMethod and Description
public float

Returns:

the B value
getB
()

Returns the b value of the tristimulus.

public COSArray

Returns:

the cos object that matches this Java object
getCOSArray
()

Convert this standard java object to a COS object.

public COSBase

Returns:

the cos object that matches this Java object
getCOSObject
()

Implements org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

Convert this standard java object to a COS object.

public float

Returns:

the g value
getG
()

Returns the g value of the tristimulus.

public float

Returns:

the R value.
getR
()

Returns the r value of the tristimulus.

public void
setB(float
he b value for the tristimulus
b
)

Sets the b value of the tristimulus.

public void
setG(float
the g value for the tristimulus
g
)

Sets the g value of the tristimulus.

public void
setR(float
the r value for the tristimulus
r
)

Sets the r value of the tristimulus.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

valuesback to summary
private final COSArray values

Constructor Detail

PDGammaback to summary
public PDGamma()

Creates a new gamma. Defaults all values to 0, 0, 0.

PDGammaback to summary
public PDGamma(COSArray array)

Creates a new gamma from a COS array.

Parameters
array:COSArray

the array containing the XYZ values

Method Detail

getBback to summary
public float getB()

Returns the b value of the tristimulus.

Returns:float

the B value

getCOSArrayback to summary
public COSArray getCOSArray()

Convert this standard java object to a COS object.

Returns:COSArray

the cos object that matches this Java object

getCOSObjectback to summary
public COSBase getCOSObject()

Implements org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

Convert this standard java object to a COS object.

Returns:COSBase

the cos object that matches this Java object

Annotations
@Override
getGback to summary
public float getG()

Returns the g value of the tristimulus.

Returns:float

the g value

getRback to summary
public float getR()

Returns the r value of the tristimulus.

Returns:float

the R value.

setBback to summary
public void setB(float b)

Sets the b value of the tristimulus.

Parameters
b:float

he b value for the tristimulus

setGback to summary
public void setG(float g)

Sets the g value of the tristimulus.

Parameters
g:float

the g value for the tristimulus

setRback to summary
public void setR(float r)

Sets the r value of the tristimulus.

Parameters
r:float

the r value for the tristimulus