public interface HasColors<T>
Modifier and Type | Method and Description |
---|---|
T |
addColors(Color... colors)
Adds colors.
|
java.util.List<Color> |
getColors() |
T |
setColors(java.util.List<Color> colors)
Sets the list of colors.
|
java.util.List<Color> getColors()
T setColors(java.util.List<Color> colors)
If you use charts based on SlicedChartModelImpl
it specifies the colors of the slices, if the slice color is
not set. If there are more slices than colors in this array, the chart picks random color.
If you use charts based on CoordinateChartModelImpl
or StockChartModel
it specifies the colors of the graphs
if the lineColor of a graph is not set. If there are more graphs then colors in this array, the chart picks a
random color. If not set the default value is
["#FF6600", "#FCD202", "#B0DE09",
"#0D8ECF", "#2A0CD0", "#CD0D74",
"#CC0000", "#00CC00", "#0000CC",
"#DDDDDD", "#999999", "#333333",
"#990000"]
If you use chart based on SlicedChartModelImpl
(PieChart, FunnelChart). Specifies the colors of the slices, if
the slice color is not set. If there are more slices than colors in this array, the chart picks random color.
If not set default value is
["#FF0F00", "#FF6600", "#FF9E01", "#FCD202",
"#F8FF01", "#B0DE09", "#04D215", "#0D8ECF",
"#0D52D1", "#2A0CD0", "#8A0CCF", "#CD0D74",
"#754DEB", "#DDDDDD", "#999999", "#333333",
"#000000", "#57032A", "#CA9726", "#990000",
"#4B0C25"]
colors
- list of colors