jPodRenderer PDF library

de.intarsys.pdf.platform.cwt.color.awt
Class AwtColorSpace

java.lang.Object
  extended by de.intarsys.pdf.platform.cwt.color.awt.AwtColorSpace
Direct Known Subclasses:
AwtCSCIEBased, AwtCSDevice, AwtCSSpecial

public abstract class AwtColorSpace
extends Object


Field Summary
static ColorSpace FALLBACK
           
 
Constructor Summary
AwtColorSpace(de.intarsys.pdf.pd.PDColorSpace pdColorSpace)
           
 
Method Summary
abstract  ColorModel getColorModel(de.intarsys.pdf.pd.PDImage pdImage)
          return a corresponding java color model
 ColorSpace getColorSpace()
          return a java awt equivalent of this color space
 int getNumComponents()
           
 de.intarsys.pdf.pd.PDColorSpace getPDColorSpace()
           
 float[] getRGB(float[] values)
          The color values to be used in the RGB color space.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FALLBACK

public static final ColorSpace FALLBACK
Constructor Detail

AwtColorSpace

public AwtColorSpace(de.intarsys.pdf.pd.PDColorSpace pdColorSpace)
Method Detail

getColorModel

public abstract ColorModel getColorModel(de.intarsys.pdf.pd.PDImage pdImage)
return a corresponding java color model

Returns:
a corresponding java color model

getColorSpace

public final ColorSpace getColorSpace()
return a java awt equivalent of this color space

Returns:
return a java awt equivalent of this color space

getNumComponents

public int getNumComponents()

getPDColorSpace

public de.intarsys.pdf.pd.PDColorSpace getPDColorSpace()

getRGB

public float[] getRGB(float[] values)
The color values to be used in the RGB color space.

This MAY be different from using the AWT color space to convert the values, as an AWT color space may not exist (for example with Separation color space).

Parameters:
values - The color values in this color space.
Returns:
The color values in RGB color space.

jPodRenderer PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.