org.icepdf.core.pobjects.graphics
Class DeviceN

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.DeviceN

public class DeviceN
extends PColorSpace

DeviceN colour spaces shall be defined in a similar way to Separation colour spaces-in fact, a Separationcolour space can be defined as a DeviceN colour space with only one component.

A DeviceN colour space shall be specified as follows: [/DeviceN names alternateSpace tintTransform] or [/DeviceN names alternateSpace tintTransform attributes]

It is a four- or five-element array whose first element shall be the colour space family name DeviceN. The remaining elements shall be parameters that a DeviceN colour space requires.


Field Summary
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, inited, isDeleted, isNew, library, SUBTYPE_KEY, TYPE_KEY
 
Method Summary
 java.awt.Color getColor(float[] f)
           
 int getNumComponents()
           
 
Methods inherited from class org.icepdf.core.pobjects.graphics.PColorSpace
getColorSpace, getColorSpace, getDescription, normaliseComponentsToFloats, reverse, reverseInPlace, reverseInPlace
 
Methods inherited from class org.icepdf.core.pobjects.Dictionary
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getObject, getPObjectReference, init, 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()
Specified by:
getNumComponents in class PColorSpace
Returns:

getColor

public java.awt.Color getColor(float[] f)
Specified by:
getColor in class PColorSpace
Returns: