public class StandardXYZColorSource extends java.lang.Object implements XYZColorSource, java.io.Serializable
XYZColorSource interface.
| Constructor and Description |
|---|
StandardXYZColorSource()
Creates a new instance with default colors.
|
StandardXYZColorSource(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 paint source for equality with an arbitrary object.
|
java.awt.Color |
getColor(int series,
int item)
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.
|
void |
style(java.awt.Color... colors)
Restyles the source using the specified colors.
|
public StandardXYZColorSource()
public StandardXYZColorSource(java.awt.Color... colors)
null.colors - the colors (null not permitted).public java.awt.Color getColor(int series, int item)
getColor in interface XYZColorSourceseries - the series index.item - the item index.null).public java.awt.Color getLegendColor(int series)
getLegendColor in interface XYZColorSourceseries - the series index.null).public void style(java.awt.Color... colors)
style in interface XYZColorSourcecolors - the colors.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).