Button.ButtonRenderer, ComponentRenderer<Button>, InteractableRenderer<Button>public static class Button.BorderedButtonRenderer extends Object implements Button.ButtonRenderer
| Constructor | Description |
|---|---|
BorderedButtonRenderer() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
drawComponent(TextGUIGraphics graphics,
Button button) |
Using the supplied graphics object, draws the component passed in.
|
TerminalPosition |
getCursorLocation(Button component) |
|
TerminalSize |
getPreferredSize(Button component) |
Given the supplied component, how large does this renderer want the component to be?
|
public TerminalPosition getCursorLocation(Button component)
getCursorLocation in interface InteractableRenderer<Button>public TerminalSize getPreferredSize(Button component)
ComponentRenderergetPreferredSize in interface ComponentRenderer<Button>component - 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.