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