Package com.illumon.iris.db.plot.themes
Class Themes
java.lang.Object
com.illumon.iris.db.plot.themes.Themes
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) entrySet()
boolean
isEmpty()
keySet()
void
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
Returns a specified theme.static String[]
Returns the names of all available themessvalues()
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
-