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 Theme
Returns lanterna's default theme which is used if no other theme is selected.static Theme
getRegisteredTheme
(String name) static Collection
<String> Returns a collection of all themes registered with this class, by their name.private static Properties
loadPropTheme
(String resourceFileName) private static void
registerPropTheme
(String name, Properties properties) static void
registerTheme
(String name, Theme theme) Registers aTheme
with 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 associatedTheme
object, please usegetRegisteredTheme(String)
.- Returns:
- Collection of theme names
-
getRegisteredTheme
- Parameters:
name
- Name of the theme to retrieve- Returns:
Theme
registered with the supplied name, ornull
if none
-
registerTheme
Registers aTheme
with 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
-
registerPropTheme
-
loadPropTheme
-