V
- Type of the items the list box this renderer is forT
- Type of list boxComponentRenderer<V>
, InteractableRenderer<T>
public static class AbstractListBox.DefaultListBoxRenderer<V,T extends AbstractListBox<V,T>> extends Object implements InteractableRenderer<T>
AbstractListBox
and all its subclasses.Constructor | Description |
---|---|
DefaultListBoxRenderer() |
Default constructor
|
Modifier and Type | Method | Description |
---|---|---|
void |
drawComponent(TextGUIGraphics graphics,
T listBox) |
Using the supplied graphics object, draws the component passed in.
|
TerminalPosition |
getCursorLocation(T listBox) |
|
TerminalSize |
getPreferredSize(T listBox) |
Given the supplied component, how large does this renderer want the component to be?
|
public TerminalPosition getCursorLocation(T listBox)
getCursorLocation
in interface InteractableRenderer<V>
public TerminalSize getPreferredSize(T listBox)
ComponentRenderer
getPreferredSize
in interface ComponentRenderer<V>
listBox
- Component to calculate the preferred size ofpublic void drawComponent(TextGUIGraphics graphics, T listBox)
ComponentRenderer
drawComponent
in interface ComponentRenderer<V>
graphics
- Graphics object to use for drawinglistBox
- Component to drawCopyright © 2020. All rights reserved.