Package | Description |
---|---|
com.googlecode.lanterna.bundle | |
com.googlecode.lanterna.graphics | |
com.googlecode.lanterna.gui2 |
Modifier and Type | Method | Description |
---|---|---|
static Theme |
LanternaThemes.getDefaultTheme() |
Returns lanterna's default theme which is used if no other theme is selected.
|
static Theme |
LanternaThemes.getRegisteredTheme(String name) |
Modifier and Type | Method | Description |
---|---|---|
static void |
LanternaThemes.registerTheme(String name,
Theme theme) |
Registers a
Theme with this class under a certain name so that calling
LanternaThemes.getRegisteredTheme(String) on that name will return this theme and calling
LanternaThemes.getRegisteredThemes() will return a collection including this name. |
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractTheme |
Abstract
Theme implementation that manages a hierarchical tree of theme nodes ties to Class objects. |
class |
DelegatingTheme |
Allows you to more easily wrap an existing theme and alter the behaviour in some special cases.
|
class |
PropertiesTheme |
Deprecated.
Use
PropertyTheme instead, is behaves more like you would expect |
class |
PropertyTheme |
Theme implementation that stores the theme definition in a regular java Properties object. |
class |
SimpleTheme |
Very basic implementation of
Theme that allows you to quickly define a theme in code. |
Modifier and Type | Method | Description |
---|---|---|
Theme |
ThemedTextGraphics.getTheme() |
Deprecated.
Use the
Theme attached to each component instead |
Constructor | Description |
---|---|
DelegatingTheme(Theme theme) |
Creates a new
DelegatingTheme with a default implementation that will forward all calls to the
Theme that is passed in. |
Modifier and Type | Method | Description |
---|---|---|
Theme |
AbstractBasePane.getTheme() |
|
Theme |
AbstractComponent.getTheme() |
|
Theme |
AbstractTextGUI.getTheme() |
|
Theme |
BasePane.getTheme() |
Returns the text GUI
Theme associated with this base pane/window. |
Theme |
Component.getTheme() |
Returns the
Theme this component should be rendered using. |
Theme |
TextGUI.getTheme() |
Returns the theme currently assigned to this
TextGUI |
Theme |
TextGUIGraphics.getTheme() |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
void |
AbstractBasePane.setTheme(Theme theme) |
|
Component |
AbstractComponent.setTheme(Theme theme) |
|
void |
AbstractTextGUI.setTheme(Theme theme) |
|
void |
BasePane.setTheme(Theme theme) |
|
Component |
Component.setTheme(Theme theme) |
Overrides the
Theme this component will use so rather than deriving the theme from either the window or
the GUI system, it will always return this theme. |
void |
TextGUI.setTheme(Theme theme) |
Sets the global theme to be used by this TextGUI.
|
TextGUIGraphics |
TextGUIGraphics.withTheme(Theme theme) |
Deprecated.
Now this method does nothing
|
Copyright © 2020. All rights reserved.