Class HtmlColors
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.layout.richtext.html.HtmlColors
-
public class HtmlColors extends Object
Creation-Date: 20.12.2005, 10:48:22- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static Color
AQUA
static Color
BLACK
static Color
BLUE
static Color
FUCHSIA
static Color
GRAY
static Color
GREEN
static Color
LIME
static Color
MAROON
static Color
NAVY
static Color
OLIVE
static Color
PURPLE
static Color
RED
static Color
SILVER
static Color
TEAL
static Color
WHITE
static Color
YELLOW
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getColorString(Color color)
Creates the color string for the given AWT color.
-
-
-
Field Detail
-
BLACK
public static final Color BLACK
-
GREEN
public static final Color GREEN
-
SILVER
public static final Color SILVER
-
LIME
public static final Color LIME
-
GRAY
public static final Color GRAY
-
OLIVE
public static final Color OLIVE
-
WHITE
public static final Color WHITE
-
YELLOW
public static final Color YELLOW
-
MAROON
public static final Color MAROON
-
NAVY
public static final Color NAVY
-
RED
public static final Color RED
-
BLUE
public static final Color BLUE
-
PURPLE
public static final Color PURPLE
-
TEAL
public static final Color TEAL
-
FUCHSIA
public static final Color FUCHSIA
-
AQUA
public static final Color AQUA
-
-
Method Detail
-
getColorString
public static String getColorString(Color color)
Creates the color string for the given AWT color. If the color is one of the predefined HTML colors, then the logical name is returned. For all other colors, the RGB-Tripple is returned.- Parameters:
color
- the AWTColor that should be translated.- Returns:
- the translated html color definition
-
-