Modifier and Type | Method and Description |
---|---|
void |
addThemeFromFile(File file)
Adds a theme to the collection from the
file |
void |
addThemeFromFile(String filePath)
Adds a theme to the collection from the
filePath |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Theme>> |
entrySet() |
Theme |
get(Object key) |
boolean |
isEmpty() |
Set<String> |
keySet() |
Theme |
put(String key,
Theme value) |
void |
putAll(Map<? extends String,? extends Theme> m) |
Theme |
remove(Object key) |
static void |
setDefaultTheme(Theme defaultTheme)
Defines the default
Theme used when one isn't specified. |
int |
size() |
static Theme |
theme()
Returns the default theme.
|
static Theme |
theme(String name)
Returns a specified theme.
|
static String[] |
themeNames()
Returns the names of all available themess
|
Collection<Theme> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public static void setDefaultTheme(Theme defaultTheme)
Theme
used when one isn't specified.defaultTheme
- default themepublic static Theme theme(String name)
name
- name of the themeIllegalArgumentException
- no theme matching name
public static Theme theme()
Plot.theme.default
property.public static String[] themeNames()
public void addThemeFromFile(String filePath)
filePath
filePath
- must be chart formatpublic void addThemeFromFile(File file)
file
file
- must be chart formatpublic boolean containsKey(Object key)
containsKey
in interface Map<String,Theme>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Theme>
@NotNull public Collection<Theme> values()