Class Overview
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.
Summary
[Expand]
Inherited Constants |
From interface
java.awt.Transparency
int |
BITMASK |
|
int |
OPAQUE |
|
int |
TRANSLUCENT |
|
|
[Expand]
Inherited Fields |
From class
java.awt.Color
public
static
final
Color |
BLACK |
|
public
static
final
Color |
BLUE |
|
public
static
final
Color |
CYAN |
|
public
static
final
Color |
DARK_GRAY |
|
public
static
final
Color |
GRAY |
|
public
static
final
Color |
GREEN |
|
public
static
final
Color |
LIGHT_GRAY |
|
public
static
final
Color |
MAGENTA |
|
public
static
final
Color |
ORANGE |
|
public
static
final
Color |
PINK |
|
public
static
final
Color |
RED |
|
public
static
final
Color |
WHITE |
|
public
static
final
Color |
YELLOW |
|
public
static
final
Color |
black |
|
public
static
final
Color |
blue |
|
public
static
final
Color |
cyan |
|
public
static
final
Color |
darkGray |
|
public
static
final
Color |
gray |
|
public
static
final
Color |
green |
|
public
static
final
Color |
lightGray |
|
public
static
final
Color |
magenta |
|
public
static
final
Color |
orange |
|
public
static
final
Color |
pink |
|
public
static
final
Color |
red |
|
public
static
final
Color |
white |
|
public
static
final
Color |
yellow |
|
|
Public Constructors |
|
ChartColor(int r, int g, int b)
Creates a Color with an opaque sRGB with red, green and blue values in
range 0-255.
|
Public Methods |
static
Paint[]
|
createDefaultPaintArray()
Convenience method to return an array of Paint objects that
represent the pre-defined colors in the Color and
ChartColor objects.
|
[Expand]
Inherited Methods |
From class
java.awt.Color
static
int
|
HSBtoRGB(float arg0, float arg1, float arg2)
|
static
float[]
|
RGBtoHSB(int arg0, int arg1, int arg2, float[] arg3)
|
Color
|
brighter()
|
synchronized
PaintContext
|
createContext(ColorModel arg0, Rectangle arg1, Rectangle2D arg2, AffineTransform arg3, RenderingHints arg4)
|
Color
|
darker()
|
static
Color
|
decode(String arg0)
|
boolean
|
equals(Object arg0)
|
int
|
getAlpha()
|
int
|
getBlue()
|
static
Color
|
getColor(String arg0, int arg1)
|
static
Color
|
getColor(String arg0, Color arg1)
|
static
Color
|
getColor(String arg0)
|
float[]
|
getColorComponents(ColorSpace arg0, float[] arg1)
|
float[]
|
getColorComponents(float[] arg0)
|
ColorSpace
|
getColorSpace()
|
float[]
|
getComponents(float[] arg0)
|
float[]
|
getComponents(ColorSpace arg0, float[] arg1)
|
int
|
getGreen()
|
static
Color
|
getHSBColor(float arg0, float arg1, float arg2)
|
int
|
getRGB()
|
float[]
|
getRGBColorComponents(float[] arg0)
|
float[]
|
getRGBComponents(float[] arg0)
|
int
|
getRed()
|
int
|
getTransparency()
|
int
|
hashCode()
|
String
|
toString()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
java.awt.Paint
|
From interface
java.awt.Transparency
abstract
int
|
getTransparency()
|
|
Fields
public
static
final
Color
DARK_BLUE
public
static
final
Color
DARK_CYAN
public
static
final
Color
DARK_GREEN
public
static
final
Color
DARK_MAGENTA
public
static
final
Color
DARK_RED
public
static
final
Color
DARK_YELLOW
public
static
final
Color
LIGHT_BLUE
public
static
final
Color
LIGHT_CYAN
public
static
final
Color
LIGHT_GREEN
public
static
final
Color
LIGHT_MAGENTA
public
static
final
Color
LIGHT_RED
public
static
final
Color
LIGHT_YELLOW
public
static
final
Color
VERY_DARK_BLUE
public
static
final
Color
VERY_DARK_CYAN
public
static
final
Color
VERY_DARK_GREEN
public
static
final
Color
VERY_DARK_MAGENTA
A very dark magenta/purple color.
public
static
final
Color
VERY_DARK_RED
public
static
final
Color
VERY_DARK_YELLOW
A very dark yellow color.
public
static
final
Color
VERY_LIGHT_BLUE
public
static
final
Color
VERY_LIGHT_CYAN
Aa very light cyan color.
public
static
final
Color
VERY_LIGHT_GREEN
A very light green color.
public
static
final
Color
VERY_LIGHT_MAGENTA
A very light magenta color.
public
static
final
Color
VERY_LIGHT_RED
public
static
final
Color
VERY_LIGHT_YELLOW
A very light yellow color.
Public Constructors
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.
|
Public Methods
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.