Class LanternaThemes
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.private static PropertiesloadPropTheme(String resourceFileName) private static voidregisterPropTheme(String name, Properties properties) 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.
-
Field Details
-
REGISTERED_THEMES
-
-
Constructor Details
-
LanternaThemes
private LanternaThemes()
-
-
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
-
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
-
registerPropTheme
-
loadPropTheme
-