ComponentRenderer<V>
, InteractableRenderer<Table<V>>
DefaultTableRenderer
public interface TableRenderer<V> extends InteractableRenderer<Table<V>>
Modifier and Type | Method | Description |
---|---|---|
void |
drawComponent(TextGUIGraphics graphics,
Table<V> component) |
Using the supplied graphics object, draws the component passed in.
|
TerminalSize |
getPreferredSize(Table<V> component) |
Given the supplied component, how large does this renderer want the component to be?
|
getCursorLocation
void drawComponent(TextGUIGraphics graphics, Table<V> component)
ComponentRenderer
drawComponent
in interface ComponentRenderer<V>
graphics
- Graphics object to use for drawingcomponent
- Component to drawTerminalSize getPreferredSize(Table<V> component)
ComponentRenderer
getPreferredSize
in interface ComponentRenderer<V>
component
- Component to calculate the preferred size ofCopyright © 2020. All rights reserved.