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 publicly accessible.
See Also:
Serialized Form
  • Field Details

  • 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.