|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.visualization.colors.ListBasedColorLibrary
public class ListBasedColorLibrary
Color library using the color names from a list.
Field Summary | |
---|---|
private String[] |
colors
Array of color names. |
private String |
name
Color scheme name |
Fields inherited from interface de.lmu.ifi.dbs.elki.visualization.colors.ColorLibrary |
---|
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 Summary | |
---|---|
ListBasedColorLibrary(String[] colors,
String name)
Constructor without a properties file name. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String[] colors
private String name
Constructor Detail |
---|
public ListBasedColorLibrary(String[] colors, String name)
colors
- Colorsname
- Library nameMethod Detail |
---|
public String getColor(int index)
ColorLibrary
getColor
in interface ColorLibrary
index
- color index
public int getNumberOfNativeColors()
ColorLibrary
getNumberOfNativeColors
in interface ColorLibrary
protected String getName()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |