- 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
Modifier and TypeMethodDescriptionReturns what this theme considers to be the default definitiongetDefinition
(Class<?> clazz) Returns the theme definition associated with this class.Returns theWindowDecorationRenderer
to use for windows drawn in this theme.Returns a post-renderer to invoke after drawing each window, unless the GUI system or individual windows has their own renderers set.
-
Method Details
-
getDefaultDefinition
ThemeDefinition getDefaultDefinition()Returns what this theme considers to be the default definition- Returns:
- The default theme definition
-
getDefinition
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
-