| Modifier and Type | Field and Description |
|---|---|
| private final PDColorSpace | |
| private final float[] | |
| private static final Log | |
| private final COSName |
| Access | Constructor and Description |
|---|---|
| public | PDColor(COSArray
a COS array containing the color value array, PDColorSpace color space in which the color value is defined colorSpace)Creates a PDColor containing the given color value. |
| public | PDColor(float[]
array of color component values components, PDColorSpace color space in which the components are defined colorSpace)Creates a PDColor containing the given color component values. |
| public | PDColor(COSName
the name of a pattern in a pattern dictionary patternName, PDColorSpace color space in which the pattern is defined colorSpace)Creates a PDColor containing the given pattern name. |
| public | PDColor(float[]
array of color component values components, COSName the name of a pattern in a pattern dictionary patternName, PDColorSpace color space in which the pattern/components are defined colorSpace)Creates a PDColor containing the given color component values and pattern name. |
| Modifier and Type | Method and Description |
|---|---|
| public PDColorSpace | Returns: the color space in which this color value is definedReturns the color space in which this color value is defined. |
| public float[] | Returns: the components of this color value, never null.Returns the components of this color value. |
| public COSName | Returns: the pattern name from this color valueReturns the pattern name from this color value. |
| private void | |
| public boolean | Returns: true if this color value is a patternReturns true if this color value is a pattern. |
| public COSArray | Returns: the color component values as a COS arrayReturns the color component values as a COS array |
| public int | |
| public String |
| colorSpace | back to summary |
|---|---|
| private final PDColorSpace colorSpace | |
| components | back to summary |
|---|---|
| private final float[] components | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| patternName | back to summary |
|---|---|
| private final COSName patternName | |
| PDColor | back to summary |
|---|---|
| public PDColor(COSArray array, PDColorSpace colorSpace) Creates a PDColor containing the given color value.
| |
| PDColor | back to summary |
|---|---|
| public PDColor(float[] components, PDColorSpace colorSpace) Creates a PDColor containing the given color component values.
| |
| PDColor | back to summary |
|---|---|
| public PDColor(COSName patternName, PDColorSpace colorSpace) Creates a PDColor containing the given pattern name.
| |
| PDColor | back to summary |
|---|---|
| public PDColor(float[] components, COSName patternName, PDColorSpace colorSpace) Creates a PDColor containing the given color component values and pattern name.
| |
| getColorSpace | back to summary |
|---|---|
| public PDColorSpace getColorSpace() Returns the color space in which this color value is defined.
| |
| getComponents | back to summary |
|---|---|
| public float[] getComponents() Returns the components of this color value.
| |
| getPatternName | back to summary |
|---|---|
| public COSName getPatternName() Returns the pattern name from this color value.
| |
| initComponents | back to summary |
|---|---|
| private void initComponents(COSArray array) | |
| isPattern | back to summary |
|---|---|
| public boolean isPattern() Returns true if this color value is a pattern.
| |
| toCOSArray | back to summary |
|---|---|
| public COSArray toCOSArray() Returns the color component values as a COS array
| |
| toRGB | back to summary |
|---|---|
| public int toRGB() throws IOException Returns the packed RGB value for this color, if any.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |