org.jfree.chart

Class ChartColor


public class ChartColor
extends Color

Class to extend the number of Colors available to the charts. This extends the java.awt.Color object and extends the number of final Colors publically accessible.

Field Summary

static Color
DARK_BLUE
A dark blue color.
static Color
DARK_CYAN
A dark cyan color.
static Color
DARK_GREEN
A dark green color.
static Color
DARK_MAGENTA
A dark magenta color.
static Color
DARK_RED
A dark red color.
static Color
DARK_YELLOW
A dark yellow color.
static Color
LIGHT_BLUE
A light blue color.
static Color
LIGHT_CYAN
A light cyan color.
static Color
LIGHT_GREEN
A light green color.
static Color
LIGHT_MAGENTA
A light magenta color.
static Color
LIGHT_RED
A light red color.
static Color
LIGHT_YELLOW
A light yellow color.
static Color
VERY_DARK_BLUE
A very dark blue color.
static Color
VERY_DARK_CYAN
A very dark cyan color.
static Color
VERY_DARK_GREEN
A very dark green color.
static Color
VERY_DARK_MAGENTA
A very dark magenta/purple color.
static Color
VERY_DARK_RED
A very dark red color.
static Color
VERY_DARK_YELLOW
A very dark yellow color.
static Color
VERY_LIGHT_BLUE
A very light blue color.
static Color
VERY_LIGHT_CYAN
Aa very light cyan color.
static Color
VERY_LIGHT_GREEN
A very light green color.
static Color
VERY_LIGHT_MAGENTA
A very light magenta color.
static Color
VERY_LIGHT_RED
A very light red color.
static Color
VERY_LIGHT_YELLOW
A very light yellow color.

Constructor Summary

ChartColor(int r, int g, int b)
Creates a Color with an opaque sRGB with red, green and blue values in range 0-255.

Method Summary

static Paint[]
createDefaultPaintArray()
Convenience method to return an array of Paint objects that represent the pre-defined colors in the Color and ChartColor objects.

Field Details

DARK_BLUE

public static final Color DARK_BLUE
A dark blue color.

DARK_CYAN

public static final Color DARK_CYAN
A dark cyan color.

DARK_GREEN

public static final Color DARK_GREEN
A dark green color.

DARK_MAGENTA

public static final Color DARK_MAGENTA
A dark magenta color.

DARK_RED

public static final Color DARK_RED
A dark red color.

DARK_YELLOW

public static final Color DARK_YELLOW
A dark yellow color.

LIGHT_BLUE

public static final Color LIGHT_BLUE
A light blue color.

LIGHT_CYAN

public static final Color LIGHT_CYAN
A light cyan color.

LIGHT_GREEN

public static final Color LIGHT_GREEN
A light green color.

LIGHT_MAGENTA

public static final Color LIGHT_MAGENTA
A light magenta color.

LIGHT_RED

public static final Color LIGHT_RED
A light red color.

LIGHT_YELLOW

public static final Color LIGHT_YELLOW
A light yellow color.

VERY_DARK_BLUE

public static final Color VERY_DARK_BLUE
A very dark blue color.

VERY_DARK_CYAN

public static final Color VERY_DARK_CYAN
A very dark cyan color.

VERY_DARK_GREEN

public static final Color VERY_DARK_GREEN
A very dark green color.

VERY_DARK_MAGENTA

public static final Color VERY_DARK_MAGENTA
A very dark magenta/purple color.

VERY_DARK_RED

public static final Color VERY_DARK_RED
A very dark red color.

VERY_DARK_YELLOW

public static final Color VERY_DARK_YELLOW
A very dark yellow color.

VERY_LIGHT_BLUE

public static final Color VERY_LIGHT_BLUE
A very light blue color.

VERY_LIGHT_CYAN

public static final Color VERY_LIGHT_CYAN
Aa very light cyan color.

VERY_LIGHT_GREEN

public static final Color VERY_LIGHT_GREEN
A very light green color.

VERY_LIGHT_MAGENTA

public static final Color VERY_LIGHT_MAGENTA
A very light magenta color.

VERY_LIGHT_RED

public static final Color VERY_LIGHT_RED
A very light red color.

VERY_LIGHT_YELLOW

public static final Color VERY_LIGHT_YELLOW
A very light yellow color.

Constructor Details

ChartColor

public ChartColor(int r,
                  int g,
                  int b)
Creates a Color with an opaque sRGB with red, green and blue values in range 0-255.
Parameters:
r - the red component in range 0x00-0xFF.
g - the green component in range 0x00-0xFF.
b - the blue component in range 0x00-0xFF.

Method Details

createDefaultPaintArray

public static Paint[] createDefaultPaintArray()
Convenience method to return an array of Paint objects that represent the pre-defined colors in the Color and ChartColor objects.
Returns:
An array of objects with the Paint interface.