org.icepdf.core.pobjects.graphics
Class Indexed
java.lang.Object
org.icepdf.core.pobjects.Dictionary
org.icepdf.core.pobjects.graphics.PColorSpace
org.icepdf.core.pobjects.graphics.Indexed
public class Indexed
- extends PColorSpace
The class represents an indexed colour space.
|
Method Summary |
java.awt.Color[] |
accessColorTable()
|
java.awt.Color |
getColor(float[] f,
boolean fillAndStroke)
Gets the colour for the array of float values |
java.lang.String |
getDescription()
|
int |
getNumComponents()
Return the number of components in indexed colour. |
void |
init()
Initiate the Indexed Colour Object |
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INDEXED_KEY
public static final Name INDEXED_KEY
I_KEY
public static final Name I_KEY
getNumComponents
public int getNumComponents()
- Return the number of components in indexed colour.
- Specified by:
getNumComponents in class PColorSpace
- Returns:
- always returns 1.
getDescription
public java.lang.String getDescription()
- Overrides:
getDescription in class PColorSpace
init
public void init()
- Initiate the Indexed Colour Object
- Overrides:
init in class Dictionary
getColor
public java.awt.Color getColor(float[] f,
boolean fillAndStroke)
- Gets the colour for the array of float values
- Specified by:
getColor in class PColorSpace
- Parameters:
f -
- Returns:
accessColorTable
public java.awt.Color[] accessColorTable()