Package com.illumon.iris.db.plot.themes
Class Themes
java.lang.Object
com.illumon.iris.db.plot.themes.Themes
public class Themes extends Object implements Map<String,Theme>
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description void
addThemeFromFile(File file)
Adds a theme to the collection from thefile
void
addThemeFromFile(String filePath)
Adds a theme to the collection from thefilePath
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 defaultTheme
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 themessCollection<Theme>
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
setDefaultTheme
Defines the defaultTheme
used when one isn't specified.- Parameters:
defaultTheme
- default theme
-
theme
Returns a specified theme.- Parameters:
name
- name of the theme- Returns:
- theme
- Throws:
IllegalArgumentException
- no theme matchingname
-
theme
Returns the default theme. The deault is specified by thePlot.theme.default
property.- Returns:
- default theme
-
themeNames
Returns the names of all available themess- Returns:
- names of all available themes
-
addThemeFromFile
Adds a theme to the collection from thefilePath
- Parameters:
filePath
- must be chart format
-
addThemeFromFile
Adds a theme to the collection from thefile
- Parameters:
file
- must be chart format
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<String,Theme>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,Theme>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-