Search in sources :

Example 1 with ListBasedColorLibrary

use of de.lmu.ifi.dbs.elki.visualization.colors.ListBasedColorLibrary in project elki by elki-project.

the class PropertiesBasedStyleLibrary method getColorSet.

@Override
public ColorLibrary getColorSet(String key) {
    ColorLibrary cl = getCached(key, COLORSET, ColorLibrary.class);
    if (cl == null) {
        String[] colors = getPropertyValue(key, COLORSET).split(LIST_SEPARATOR);
        cl = new ListBasedColorLibrary(colors, "Default");
        setCached(key, COLORSET, cl);
    }
    return cl;
}
Also used : ListBasedColorLibrary(de.lmu.ifi.dbs.elki.visualization.colors.ListBasedColorLibrary) ColorLibrary(de.lmu.ifi.dbs.elki.visualization.colors.ColorLibrary) ListBasedColorLibrary(de.lmu.ifi.dbs.elki.visualization.colors.ListBasedColorLibrary)

Aggregations

ColorLibrary (de.lmu.ifi.dbs.elki.visualization.colors.ColorLibrary)1 ListBasedColorLibrary (de.lmu.ifi.dbs.elki.visualization.colors.ListBasedColorLibrary)1