Class FatWindowDecorationRenderer

java.lang.Object
com.googlecode.lanterna.gui2.FatWindowDecorationRenderer
All Implemented Interfaces:
WindowDecorationRenderer

public class FatWindowDecorationRenderer extends Object implements WindowDecorationRenderer
  • Field Details

  • Constructor Details

    • FatWindowDecorationRenderer

      public FatWindowDecorationRenderer()
  • Method Details

    • draw

      public TextGUIGraphics draw(WindowBasedTextGUI textGUI, TextGUIGraphics graphics, Window window)
      Description copied from interface: WindowDecorationRenderer
      Draws the window decorations for a particular window and returns a new TextGraphics that is locked to the area inside of the window decorations where the content of the window should be drawn
      Specified by:
      draw in interface WindowDecorationRenderer
      Parameters:
      textGUI - Which TextGUI is calling
      graphics - Graphics to use for drawing
      window - Window to draw
      Returns:
      A new TextGraphics that is limited to the area inside the decorations just drawn
    • getDecoratedSize

      public TerminalSize getDecoratedSize(Window window, TerminalSize contentAreaSize)
      Description copied from interface: WindowDecorationRenderer
      Retrieves the full size of the window, including all window decorations, given all components inside the window.
      Specified by:
      getDecoratedSize in interface WindowDecorationRenderer
      Parameters:
      window - Window to calculate size for
      contentAreaSize - Size of the content area in the window
      Returns:
      Full size of the window, including decorations
    • getOffset

      public TerminalPosition getOffset(Window window)
      Description copied from interface: WindowDecorationRenderer
      Returns how much to step right and down from the top left position of the window decorations to the top left position of the actual window
      Specified by:
      getOffset in interface WindowDecorationRenderer
      Parameters:
      window - Window to get the offset for
      Returns:
      Position of the top left corner of the window, relative to the top left corner of the window decoration
    • hasTitle

      private boolean hasTitle(Window window)