Module com.googlecode.lanterna
Class MenuItem.DefaultMenuItemRenderer
java.lang.Object
com.googlecode.lanterna.gui2.menu.MenuItem.MenuItemRenderer
com.googlecode.lanterna.gui2.menu.MenuItem.DefaultMenuItemRenderer
- All Implemented Interfaces:
ComponentRenderer<MenuItem>
,InteractableRenderer<MenuItem>
- Enclosing class:
MenuItem
Default renderer for menu items (both sub-menus and regular items)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawComponent
(TextGUIGraphics graphics, MenuItem menuItem) Using the supplied graphics object, draws the component passed in.getCursorLocation
(MenuItem component) getPreferredSize
(MenuItem component) 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.
-
Constructor Details
-
DefaultMenuItemRenderer
public DefaultMenuItemRenderer()
-
-
Method Details