|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdmodel.graphics.color.PDColorSpaceInstance
This class represents a color space and the color value for that colorspace.
Constructor Summary | |
PDColorSpaceInstance()
Default constructor. |
|
PDColorSpaceInstance(COSArray csValues)
Constructor with an existing color set. |
Method Summary | |
Color |
createColor()
Create the current color from the colorspace and values. |
PDColorSpace |
getColorSpace()
This will get the current colorspace. |
float[] |
getColorSpaceValue()
This will get the color space values. |
COSArray |
getCOSColorSpaceValue()
This will get the color space values. |
void |
setColorSpace(PDColorSpace value)
This will set the current colorspace. |
void |
setColorSpaceValue(float[] value)
This will update the colorspace values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PDColorSpaceInstance()
public PDColorSpaceInstance(COSArray csValues)
csValues
- The color space values.Method Detail |
public Color createColor() throws IOException
IOException
- If there is an error creating the color.public PDColorSpace getColorSpace()
public void setColorSpace(PDColorSpace value)
value
- The new colorspace.public float[] getColorSpaceValue()
public COSArray getCOSColorSpaceValue()
public void setColorSpaceValue(float[] value)
value
- The new colorspace values.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |