X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fcom%2Fgooglecode%2Flanterna%2Fgui2%2Ftable%2FTableHeaderRenderer.java;fp=src%2Fcom%2Fgooglecode%2Flanterna%2Fgui2%2Ftable%2FTableHeaderRenderer.java;h=0000000000000000000000000000000000000000;hp=cf32d9a1f92c2e9a4a19e391dd9e2448d6eb3884;hb=f06c81000632cfb5f525ca458f719338f55f9f66;hpb=a73a906356c971b080c36368e71a15d87e8b8d31 diff --git a/src/com/googlecode/lanterna/gui2/table/TableHeaderRenderer.java b/src/com/googlecode/lanterna/gui2/table/TableHeaderRenderer.java deleted file mode 100644 index cf32d9a..0000000 --- a/src/com/googlecode/lanterna/gui2/table/TableHeaderRenderer.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.googlecode.lanterna.gui2.table; - -import com.googlecode.lanterna.TerminalSize; -import com.googlecode.lanterna.gui2.TextGUIGraphics; - -/** - * This interface can be implemented if you want to customize how table headers are drawn. - * @param Type of data stored in each table cell - * @author Martin - */ -public interface TableHeaderRenderer { - /** - * Called by the table when it wants to know how big a particular table header should be - * @param table Table containing the header - * @param label Label for this header - * @param columnIndex Column index of the header - * @return Size this renderer would like the header to have - */ - TerminalSize getPreferredSize(Table table, String label, int columnIndex); - - /** - * 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 {@code textGUIGraphics}. The top-left position of the graphics object is the top-left position of this - * header. - * @param table Table containing the header - * @param label Label for this header - * @param index Column index of the header - * @param textGUIGraphics Graphics object to header with - */ - void drawHeader(Table table, String label, int index, TextGUIGraphics textGUIGraphics); -}