public interface TableRenderer<V> extends InteractableRenderer<Table<V>>
Modifier and Type | Method and 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? Notice that this is the
responsibility of the renderer and not the component itself, since the component has no idea what its visual
representation looks like.
|
getCursorLocation
void drawComponent(TextGUIGraphics graphics, Table<V> component)
ComponentRenderer
drawComponent
in interface ComponentRenderer<Table<V>>
graphics
- Graphics object to use for drawingcomponent
- Component to drawTerminalSize getPreferredSize(Table<V> component)
ComponentRenderer
getPreferredSize
in interface ComponentRenderer<Table<V>>
component
- Component to calculate the preferred size ofCopyright © 2016. All rights reserved.