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)
          The color as an array of floats.
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:
The border color of the annotation.

getBorderColorRGB

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

Parameters:
annotation -
Returns:
The border color RGB values for the annotation.

getFillColor

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

Parameters:
annotation -
Returns:
The fill color for the annotation.

getFillColorRGB

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

Parameters:
annotation -
Returns:
The fill color RGB values for the annotation.

toColor

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

Parameters:
color -
Returns:
The transformed color

toColor

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

Parameters:
color -
Returns:
The transformed color

toFloatArray

public static float[] toFloatArray(Color color)
The color as an array of floats.

Parameters:
color -
Returns:
The color as an array of floats.

toIntArray

public static int[] toIntArray(Color color)

toRGB

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

Parameters:
color -
Returns:
The color values as RGB float values.

toRGB

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

Parameters:
color -
Returns:
The color values as RGB values.

jPodRenderer PDF library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.