public class StandardCategoryColorSource extends java.lang.Object implements CategoryColorSource, java.io.Serializable
CategoryColorSource interface.
| Constructor and Description |
|---|
StandardCategoryColorSource()
Creates a new instance with default colors.
|
StandardCategoryColorSource(java.awt.Color... colors)
Creates a new instance with the supplied sequence of colors.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this color source for equality with an arbitrary object.
|
java.awt.Color |
getColor(int series,
int row,
int column)
Returns the color to use for the specified item.
|
java.awt.Color |
getLegendColor(int series)
Returns the color to use in the legend for the specified series.
|
int |
hashCode() |
void |
style(java.awt.Color... colors)
Restyles the source using the specified colors.
|
public StandardCategoryColorSource()
public StandardCategoryColorSource(java.awt.Color... colors)
null.colors - the colors (null not permitted).public java.awt.Color getColor(int series, int row, int column)
getColor in interface CategoryColorSourceseries - the series index.row - the row index.column - the column index.null).public java.awt.Color getLegendColor(int series)
getLegendColor in interface CategoryColorSourceseries - the series index.null).public void style(java.awt.Color... colors)
style in interface CategoryColorSourcecolors - the colors.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).public int hashCode()
hashCode in class java.lang.Object