org.icepdf.core.pobjects.graphics
Class Indexed

java.lang.Object
  extended by org.icepdf.core.pobjects.Dictionary
      extended by org.icepdf.core.pobjects.graphics.PColorSpace
          extended by org.icepdf.core.pobjects.graphics.Indexed

public class Indexed
extends PColorSpace

The class represents an indexed colour space.


Field Summary
static Name I_KEY
           
static Name INDEXED_KEY
           
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, FORM_TYPE_KEY, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY
 
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.graphics.PColorSpace
getColor, getColorSpace, getColorSpace, normaliseComponentsToFloats, reverse, reverseInPlace, reverseInPlace
 
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
 

Field Detail

INDEXED_KEY

public static final Name INDEXED_KEY

I_KEY

public static final Name I_KEY
Method Detail

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()