Class Button.BorderedButtonRenderer

java.lang.Object
com.googlecode.lanterna.gui2.Button.BorderedButtonRenderer
All Implemented Interfaces:
Button.ButtonRenderer, ComponentRenderer<Button>, InteractableRenderer<Button>
Enclosing class:
Button

public static class Button.BorderedButtonRenderer extends Object implements Button.ButtonRenderer
  • Constructor Details

    • BorderedButtonRenderer

      public BorderedButtonRenderer()
  • Method Details

    • getCursorLocation

      public TerminalPosition getCursorLocation(Button component)
      Specified by:
      getCursorLocation in interface InteractableRenderer<Button>
    • getPreferredSize

      public TerminalSize getPreferredSize(Button component)
      Description copied from interface: ComponentRenderer
      Given the supplied component, how large does this renderer want the component to be? Notice that this is the responsibility of the renderer and not the component itself, since the component has no idea what its visual representation looks like.
      Specified by:
      getPreferredSize in interface ComponentRenderer<Button>
      Parameters:
      component - Component to calculate the preferred size of
      Returns:
      The size this renderer would like the component to take up
    • drawComponent

      public void drawComponent(TextGUIGraphics graphics, Button button)
      Description copied from interface: ComponentRenderer
      Using the supplied graphics object, draws the component passed in.
      Specified by:
      drawComponent in interface ComponentRenderer<Button>
      Parameters:
      graphics - Graphics object to use for drawing
      button - Component to draw