-
- All Known Implementing Classes:
AbstractTheme
,DefaultTheme
,DelegatingTheme
,PropertyTheme
,SimpleTheme
public interface Theme
The main theme interface, from which you can retrieve theme definitions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThemeDefinition
getDefaultDefinition()
Returns what this theme considers to be the default definitionThemeDefinition
getDefinition(java.lang.Class<?> clazz)
Returns the theme definition associated with this class.WindowDecorationRenderer
getWindowDecorationRenderer()
Returns theWindowDecorationRenderer
to use for windows drawn in this theme.WindowPostRenderer
getWindowPostRenderer()
Returns a post-renderer to invoke after drawing each window, unless the GUI system or individual windows has their own renderers set.
-
-
-
Method Detail
-
getDefaultDefinition
ThemeDefinition getDefaultDefinition()
Returns what this theme considers to be the default definition- Returns:
- The default theme definition
-
getDefinition
ThemeDefinition getDefinition(java.lang.Class<?> clazz)
Returns the theme definition associated with this class. The implementation of Theme should ensure that this call never returnsnull
, it should always give back a valid value (falling back to the default is nothing else can be used).- Parameters:
clazz
- Class to get the theme definition for- Returns:
- The ThemeDefinition for the class passed in
-
getWindowPostRenderer
WindowPostRenderer getWindowPostRenderer()
Returns a post-renderer to invoke after drawing each window, unless the GUI system or individual windows has their own renderers set. Ifnull
, no post-renderer will be done (unless the GUI system or the windows has a post-renderer).- Returns:
- A
WindowPostRenderer
to invoke after drawing each window unless overridden, ornull
if none
-
getWindowDecorationRenderer
WindowDecorationRenderer getWindowDecorationRenderer()
Returns theWindowDecorationRenderer
to use for windows drawn in this theme. Ifnull
then lanterna will fall back to useDefaultWindowDecorationRenderer
.- Returns:
- The decoration renderer to use for this theme, or
null
to use system default
-
-