java.lang.Object
com.googlecode.lanterna.bundle.LanternaThemes
Catalog of available themes, this class will initially contain the themes bundled with Lanterna but it is possible to
add additional themes as well.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThemeReturns lanterna's default theme which is used if no other theme is selected.static ThemegetRegisteredTheme(String name) static Collection<String> Returns a collection of all themes registered with this class, by their name.static voidregisterTheme(String name, Theme theme) Registers aThemewith this class under a certain name so that callinggetRegisteredTheme(String)on that name will return this theme and callinggetRegisteredThemes()will return a collection including this name.
-
Method Details
-
getRegisteredThemes
Returns a collection of all themes registered with this class, by their name. To get the associatedThemeobject, please usegetRegisteredTheme(String).- Returns:
- Collection of theme names
-
getRegisteredTheme
- Parameters:
name- Name of the theme to retrieve- Returns:
Themeregistered with the supplied name, ornullif none
-
registerTheme
Registers aThemewith this class under a certain name so that callinggetRegisteredTheme(String)on that name will return this theme and callinggetRegisteredThemes()will return a collection including this name.- Parameters:
name- Name to register the theme undertheme- Theme to register with this name
-
getDefaultTheme
Returns lanterna's default theme which is used if no other theme is selected.- Returns:
- Lanterna's default theme, as a
Theme
-