public class ListBasedColorLibrary extends Object implements ColorLibrary
Modifier and Type | Field and Description |
---|---|
private String[] |
colors
Array of color names.
|
private String |
name
Color scheme name
|
COLOR_AXIS_LABEL, COLOR_AXIS_LINE, COLOR_AXIS_MINOR_TICK, COLOR_AXIS_TICK, COLOR_KEY_BACKGROUND, COLOR_KEY_LABEL, COLOR_LINE_COLORS, COLOR_PAGE_BACKGROUND, COLOR_PLOT_BACKGROUND
Constructor and Description |
---|
ListBasedColorLibrary(String[] colors,
String name)
Constructor without a properties file name.
|
Modifier and Type | Method and Description |
---|---|
String |
getColor(int index)
Return the i'th color.
|
protected String |
getName()
Get the color scheme name.
|
int |
getNumberOfNativeColors()
Return the number of native colors available.
|
private String[] colors
private String name
public String getColor(int index)
ColorLibrary
getColor
in interface ColorLibrary
index
- color indexpublic int getNumberOfNativeColors()
ColorLibrary
getNumberOfNativeColors
in interface ColorLibrary
protected String getName()