ComponentRenderer<MenuItem>
, InteractableRenderer<MenuItem>
public static class MenuItem.DefaultMenuItemRenderer extends MenuItem.MenuItemRenderer
Constructor | Description |
---|---|
DefaultMenuItemRenderer() |
Modifier and Type | Method | Description |
---|---|---|
void |
drawComponent(TextGUIGraphics graphics,
MenuItem menuItem) |
Using the supplied graphics object, draws the component passed in.
|
TerminalPosition |
getCursorLocation(MenuItem component) |
|
TerminalSize |
getPreferredSize(MenuItem component) |
Given the supplied component, how large does this renderer want the component to be?
|
public TerminalPosition getCursorLocation(MenuItem component)
public TerminalSize getPreferredSize(MenuItem component)
ComponentRenderer
component
- Component to calculate the preferred size ofpublic void drawComponent(TextGUIGraphics graphics, MenuItem menuItem)
ComponentRenderer
graphics
- Graphics object to use for drawingmenuItem
- Component to drawCopyright © 2020. All rights reserved.