jPodRenderer PDF library

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

java.lang.Object
  extended by de.intarsys.pdf.platform.cwt.color.awt.AwtColorTools

public class AwtColorTools
extends Object


Constructor Summary
AwtColorTools()
           
 
Method Summary
static Color getBorderColor(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
          The border color of the annotation.
static float[] getBorderColorRGB(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
          The border color RGB values for the annotation.
static Color getFillColor(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
          The fill color for the annotation.
static float[] getFillColorRGB(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
          The fill color RGB values for the annotation.
static Color toColor(float[] color)
          Transform the color values to an AWT color in RGB space.
static Color toColor(int[] color)
          Transform the color values to an AWT color in RGB space.
static float[] toFloatArray(Color color)
           
static int[] toIntArray(Color color)
           
static float[] toRGB(float[] color)
          Transform the color values to RGB values.
static int[] toRGB(int[] color)
          Transform the color values to RGB values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AwtColorTools

public AwtColorTools()
Method Detail

getBorderColor

public static Color getBorderColor(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
The border color of the annotation.

Parameters:
annotation -
Returns:

getBorderColorRGB

public static float[] getBorderColorRGB(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
The border color RGB values for the annotation.

Parameters:
annotation -
Returns:

getFillColor

public static Color getFillColor(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
The fill color for the annotation.

Parameters:
annotation -
Returns:

getFillColorRGB

public static float[] getFillColorRGB(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
The fill color RGB values for the annotation.

Parameters:
annotation -
Returns:

toColor

public static Color toColor(float[] color)
Transform the color values to an AWT color in RGB space.

Parameters:
color -
Returns:

toColor

public static Color toColor(int[] color)
Transform the color values to an AWT color in RGB space.

Parameters:
color -
Returns:

toFloatArray

public static float[] toFloatArray(Color color)

toIntArray

public static int[] toIntArray(Color color)

toRGB

public static float[] toRGB(float[] color)
Transform the color values to RGB values.

Parameters:
color -
Returns:

toRGB

public static int[] toRGB(int[] color)
Transform the color values to RGB values.

Parameters:
color -
Returns:

jPodRenderer PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.