TableHeaderRenderer<V>
public class DefaultTableHeaderRenderer<V> extends Object implements TableHeaderRenderer<V>
TableHeaderRenderer
Constructor | Description |
---|---|
DefaultTableHeaderRenderer() |
Modifier and Type | Method | Description |
---|---|---|
void |
drawHeader(Table<V> table,
String label,
int index,
TextGUIGraphics textGUIGraphics) |
Called by the table when it's time to draw a header, you can see how much size is available by checking the size
of the
textGUIGraphics . |
TerminalSize |
getPreferredSize(Table<V> table,
String label,
int columnIndex) |
Called by the table when it wants to know how big a particular table header should be
|
public TerminalSize getPreferredSize(Table<V> table, String label, int columnIndex)
TableHeaderRenderer
getPreferredSize
in interface TableHeaderRenderer<V>
table
- Table containing the headerlabel
- Label for this headercolumnIndex
- Column index of the headerpublic void drawHeader(Table<V> table, String label, int index, TextGUIGraphics textGUIGraphics)
TableHeaderRenderer
textGUIGraphics
. The top-left position of the graphics object is the top-left position of this
header.drawHeader
in interface TableHeaderRenderer<V>
table
- Table containing the headerlabel
- Label for this headerindex
- Column index of the headertextGUIGraphics
- Graphics object to header withCopyright © 2020. All rights reserved.