X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fcom%2Fgooglecode%2Flanterna%2Fgui2%2Ftable%2FTableCellRenderer.java;fp=src%2Fcom%2Fgooglecode%2Flanterna%2Fgui2%2Ftable%2FTableCellRenderer.java;h=0000000000000000000000000000000000000000;hp=f7a20dae69c54f931560ebdb410bb0b1a380bbd0;hb=f06c81000632cfb5f525ca458f719338f55f9f66;hpb=a73a906356c971b080c36368e71a15d87e8b8d31 diff --git a/src/com/googlecode/lanterna/gui2/table/TableCellRenderer.java b/src/com/googlecode/lanterna/gui2/table/TableCellRenderer.java deleted file mode 100644 index f7a20da..0000000 --- a/src/com/googlecode/lanterna/gui2/table/TableCellRenderer.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.googlecode.lanterna.gui2.table; - -import com.googlecode.lanterna.TerminalSize; -import com.googlecode.lanterna.gui2.TextGUIGraphics; - -/** - * The main interface to implement when you need to customize the way table cells are drawn - * - * @param Type of data in the table cells - * @author Martin - */ -public interface TableCellRenderer { - /** - * Called by the table when it wants to know how big a particular table cell should be - * @param table Table containing the cell - * @param cell Data stored in the cell - * @param columnIndex Column index of the cell - * @param rowIndex Row index of the cell - * @return Size this renderer would like the cell to have - */ - TerminalSize getPreferredSize(Table table, V cell, int columnIndex, int rowIndex); - - /** - * Called by the table when it's time to draw a cell, 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 cell. - * @param table Table containing the cell - * @param cell Data stored in the cell - * @param columnIndex Column index of the cell - * @param rowIndex Row index of the cell - * @param textGUIGraphics Graphics object to draw with - */ - void drawCell(Table table, V cell, int columnIndex, int rowIndex, TextGUIGraphics textGUIGraphics); -}