T
- Type of the component which this renderer is designed forBorder.BorderRenderer
, Button.ButtonRenderer
, InteractableRenderer<T>
, TableRenderer<V>
, TextBox.TextBoxRenderer
AbstractListBox.DefaultListBoxRenderer
, Button.BorderedButtonRenderer
, Button.DefaultButtonRenderer
, Button.FlatButtonRenderer
, CheckBox.CheckBoxRenderer
, CheckBox.DefaultCheckBoxRenderer
, ComboBox.ComboBoxRenderer
, ComboBox.DefaultComboBoxRenderer
, DefaultTableRenderer
, Panel.DefaultPanelRenderer
, ProgressBar.DefaultProgressBarRenderer
, ProgressBar.LargeProgressBarRenderer
, ScrollBar.DefaultScrollBarRenderer
, ScrollBar.ScrollBarRenderer
, Separator.DefaultSeparatorRenderer
, Separator.SeparatorRenderer
, TextBox.DefaultTextBoxRenderer
public interface ComponentRenderer<T extends Component>
Modifier and Type | Method | Description |
---|---|---|
void |
drawComponent(TextGUIGraphics graphics,
T component) |
Using the supplied graphics object, draws the component passed in.
|
TerminalSize |
getPreferredSize(T component) |
Given the supplied component, how large does this renderer want the component to be?
|
TerminalSize getPreferredSize(T component)
component
- Component to calculate the preferred size ofvoid drawComponent(TextGUIGraphics graphics, T component)
graphics
- Graphics object to use for drawingcomponent
- Component to drawCopyright © 2020. All rights reserved.