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 TypeMethodDescriptionvoidaddThemeFromFile(File file) Adds a theme to the collection from thefilevoidaddThemeFromFile(String filePath) Adds a theme to the collection from thefilePathvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()voidstatic voidsetDefaultTheme(Theme defaultTheme) Defines the defaultThemeused when one isn't specified.intsize()static Themetheme()Returns the default theme.static ThemeReturns 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, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
setDefaultTheme
Defines the defaultThemeused 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.defaultproperty.- 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:
containsKeyin interfaceMap<String,Theme>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Theme>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-