Package org.jfree.chart
Class ChartColor
java.lang.Object
java.awt.Color
org.jfree.chart.ChartColor
- All Implemented Interfaces:
Paint,Transparency,Serializable
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.
- Author:
- Cameron Riley
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static ColorDARK_BLUEA dark blue color.static ColorDARK_CYANA dark cyan color.static ColorDARK_GREENA dark green color.static ColorDARK_MAGENTAA dark magenta color.static ColorDARK_REDA dark red color.static ColorDARK_YELLOWA dark yellow color.static ColorLIGHT_BLUEA light blue color.static ColorLIGHT_CYANA light cyan color.static ColorLIGHT_GREENA light green color.static ColorLIGHT_MAGENTAA light magenta color.static ColorLIGHT_REDA light red color.static ColorLIGHT_YELLOWA light yellow color.static ColorVERY_DARK_BLUEA very dark blue color.static ColorVERY_DARK_CYANA very dark cyan color.static ColorVERY_DARK_GREENA very dark green color.static ColorVERY_DARK_MAGENTAA very dark magenta/purple color.static ColorVERY_DARK_REDA very dark red color.static ColorVERY_DARK_YELLOWA very dark yellow color.static ColorVERY_LIGHT_BLUEA very light blue color.static ColorVERY_LIGHT_CYANAa very light cyan color.static ColorVERY_LIGHT_GREENA very light green color.static ColorVERY_LIGHT_MAGENTAA very light magenta color.static ColorVERY_LIGHT_REDA very light red color.static ColorVERY_LIGHT_YELLOWA very light yellow color.Fields inherited from class java.awt.Color
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOWFields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
Constructors Constructor Description 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
Modifier and Type Method Description static Paint[]createDefaultPaintArray()Convenience method to return an array ofPaintobjects that represent the pre-defined colors in theColorandChartColorobjects.Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
-
Field Details
-
VERY_DARK_RED
A very dark red color. -
DARK_RED
A dark red color. -
LIGHT_RED
A light red color. -
VERY_LIGHT_RED
A very light red color. -
VERY_DARK_YELLOW
A very dark yellow color. -
DARK_YELLOW
A dark yellow color. -
LIGHT_YELLOW
A light yellow color. -
VERY_LIGHT_YELLOW
A very light yellow color. -
VERY_DARK_GREEN
A very dark green color. -
DARK_GREEN
A dark green color. -
LIGHT_GREEN
A light green color. -
VERY_LIGHT_GREEN
A very light green color. -
VERY_DARK_CYAN
A very dark cyan color. -
DARK_CYAN
A dark cyan color. -
LIGHT_CYAN
A light cyan color. -
VERY_LIGHT_CYAN
Aa very light cyan color. -
VERY_DARK_BLUE
A very dark blue color. -
DARK_BLUE
A dark blue color. -
LIGHT_BLUE
A light blue color. -
VERY_LIGHT_BLUE
A very light blue color. -
VERY_DARK_MAGENTA
A very dark magenta/purple color. -
DARK_MAGENTA
A dark magenta color. -
LIGHT_MAGENTA
A light magenta color. -
VERY_LIGHT_MAGENTA
A very light magenta 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
Convenience method to return an array ofPaintobjects that represent the pre-defined colors in theColorandChartColorobjects.- Returns:
- an array of objects with the
Paintinterface.
-