public class LanternaThemes extends Object
Modifier and Type | Method | Description |
---|---|---|
static Theme |
getDefaultTheme() |
Returns lanterna's default theme which is used if no other theme is selected.
|
static Theme |
getRegisteredTheme(String name) |
|
static Collection<String> |
getRegisteredThemes() |
Returns a collection of all themes registered with this class, by their name.
|
static void |
registerTheme(String name,
Theme theme) |
Registers a
Theme with this class under a certain name so that calling
getRegisteredTheme(String) on that name will return this theme and calling
getRegisteredThemes() will return a collection including this name. |
public static Collection<String> getRegisteredThemes()
Theme
object, please use getRegisteredTheme(String)
.public static Theme getRegisteredTheme(String name)
name
- Name of the theme to retrieveTheme
registered with the supplied name, or null
if nonepublic static void registerTheme(String name, Theme theme)
Theme
with this class under a certain name so that calling
getRegisteredTheme(String)
on that name will return this theme and calling
getRegisteredThemes()
will return a collection including this name.name
- Name to register the theme undertheme
- Theme to register with this nameCopyright © 2020. All rights reserved.