All Known Implementing Classes:
AbstractTheme, DefaultTheme, DelegatingTheme, PropertyTheme, SimpleTheme

public interface Theme
The main theme interface, from which you can retrieve theme definitions
  • Method Details

    • getDefaultDefinition

      ThemeDefinition getDefaultDefinition()
      Returns what this theme considers to be the default definition
      Returns:
      The default theme definition
    • getDefinition

      ThemeDefinition getDefinition(Class<?> clazz)
      Returns the theme definition associated with this class. The implementation of Theme should ensure that this call never returns null, 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. If null, 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, or null if none
    • getWindowDecorationRenderer

      WindowDecorationRenderer getWindowDecorationRenderer()
      Returns the WindowDecorationRenderer to use for windows drawn in this theme. If null then lanterna will fall back to use DefaultWindowDecorationRenderer.
      Returns:
      The decoration renderer to use for this theme, or null to use system default