Class MenuBar.DefaultMenuBarRenderer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void drawComponent​(TextGUIGraphics graphics, MenuBar menuBar)
      Using the supplied graphics object, draws the component passed in.
      TerminalSize getPreferredSize​(MenuBar menuBar)
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMenuBarRenderer

        public DefaultMenuBarRenderer()
    • Method Detail

      • getPreferredSize

        public TerminalSize getPreferredSize​(MenuBar menuBar)
        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<MenuBar>
        Parameters:
        menuBar - Component to calculate the preferred size of
        Returns:
        The size this renderer would like the component to take up