-
- All Known Implementing Classes:
AbstractTheme,DefaultTheme,DelegatingTheme,PropertyTheme,SimpleTheme
public interface ThemeThe main theme interface, from which you can retrieve theme definitions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThemeDefinitiongetDefaultDefinition()Returns what this theme considers to be the default definitionThemeDefinitiongetDefinition(java.lang.Class<?> clazz)Returns the theme definition associated with this class.WindowDecorationRenderergetWindowDecorationRenderer()Returns theWindowDecorationRendererto use for windows drawn in this theme.WindowPostRenderergetWindowPostRenderer()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
WindowPostRendererto invoke after drawing each window unless overridden, ornullif none
-
getWindowDecorationRenderer
WindowDecorationRenderer getWindowDecorationRenderer()
Returns theWindowDecorationRendererto use for windows drawn in this theme. Ifnullthen lanterna will fall back to useDefaultWindowDecorationRenderer.- Returns:
- The decoration renderer to use for this theme, or
nullto use system default
-
-