org.icepdf.core.pobjects.graphics
Class DeviceGray

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

public class DeviceGray
extends PColorSpace

Since:
1.0

Field Summary
static Name DEVICEGRAY_KEY
           
static Name G_KEY
           
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY
 
Constructor Summary
DeviceGray(Library l, java.util.HashMap h)
           
 
Method Summary
 java.awt.Color getColor(float[] f, boolean fillAndStroke)
           
 int getNumComponents()
           
 
Methods inherited from class org.icepdf.core.pobjects.graphics.PColorSpace
getColor, getColorSpace, getColorSpace, getDescription, normaliseComponentsToFloats, reverse, reverseInPlace, reverseInPlace
 
Methods inherited from class org.icepdf.core.pobjects.Dictionary
getEntries, getFloat, getInt, getLibrary, getNumber, 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
 

Field Detail

DEVICEGRAY_KEY

public static final Name DEVICEGRAY_KEY

G_KEY

public static final Name G_KEY
Constructor Detail

DeviceGray

public DeviceGray(Library l,
                  java.util.HashMap h)
Method Detail

getNumComponents

public int getNumComponents()
Specified by:
getNumComponents in class PColorSpace
Returns:

getColor

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