public class AwtColorTools extends Object
| Constructor and Description |
|---|
AwtColorTools() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static Color getBorderColor(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
annotation - public static float[] getBorderColorRGB(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
annotation - public static Color getFillColor(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
annotation - public static float[] getFillColorRGB(de.intarsys.pdf.pd.PDWidgetAnnotation annotation)
annotation - public static Color toColor(float[] color)
color - public static Color toColor(int[] color)
color - public static float[] toFloatArray(Color color)
color - public static int[] toIntArray(Color color)
public static float[] toRGB(float[] color)
color - public static int[] toRGB(int[] color)
color - Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.