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