org.icepdf.core.pobjects.graphics
Class DeviceRGB

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

public class DeviceRGB
extends PColorSpace

put your documentation comment here


Field Summary
static Name DEVICERGB_KEY
           
static Name RGB_KEY
           
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY
 
Method Summary
 java.awt.Color getColor(float[] colours, boolean fillAndStroke)
          Get the awt Color value for for a given colours data.
 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

DEVICERGB_KEY

public static final Name DEVICERGB_KEY

RGB_KEY

public static final Name RGB_KEY
Method Detail

getNumComponents

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

getColor

public java.awt.Color getColor(float[] colours,
                               boolean fillAndStroke)
Get the awt Color value for for a given colours data.

Specified by:
getColor in class PColorSpace
Parameters:
colours - array containing the RGB colour values.
Returns:
a awt colour based on the colours array RGB values.