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
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, isDeleted, isNew, library, SUBTYPE_KEY, TYPE_KEY
 
Method Summary
 java.awt.Color[] accessColorTable()
           
 java.awt.Color getColor(float[] f)
          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
getColorSpace, getColorSpace, normaliseComponentsToFloats, reverse, reverseInPlace, reverseInPlace
 
Methods inherited from class org.icepdf.core.pobjects.Dictionary
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, 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
 

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)
Gets the colour for the array of float values

Specified by:
getColor in class PColorSpace
Parameters:
f -
Returns:

accessColorTable

public java.awt.Color[] accessColorTable()