public static class Button.FlatButtonRenderer extends Object implements Button.ButtonRenderer
Constructor and Description |
---|
Button.FlatButtonRenderer() |
Modifier and Type | Method and 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)
ComponentRenderer
getPreferredSize
in interface ComponentRenderer<Button>
component
- Component to calculate the preferred size ofpublic void drawComponent(TextGUIGraphics graphics, Button button)
ComponentRenderer
drawComponent
in interface ComponentRenderer<Button>
graphics
- Graphics object to use for drawingbutton
- Component to drawCopyright © 2018. All rights reserved.