X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTTableWidget.java;fp=src%2Fjexer%2FTTableWidget.java;h=3052ae95811a21a0e6cd1bf85dc9918dc5b71365;hb=4f4042d69616c1881c1bbdca12720b57e6121d0d;hp=c8eeb5722c10adcb5dfcf7978cfd583cb7b80032;hpb=73162e7fb88c3600da3ae99905180d86b4ab02f6;p=fanfix.git diff --git a/src/jexer/TTableWidget.java b/src/jexer/TTableWidget.java index c8eeb57..3052ae9 100644 --- a/src/jexer/TTableWidget.java +++ b/src/jexer/TTableWidget.java @@ -943,43 +943,6 @@ public class TTableWidget extends TWidget { return rows.size(); } - /** - * Get the full horizontal width of this table. - * - * @return the width required to render the entire table - */ - private int getMaximumWidth() { - int totalWidth = 0; - if (showRowLabels == true) { - // For now, all row labels are 8 cells wide. TODO: make this - // adjustable. - totalWidth += ROW_LABEL_WIDTH; - } - for (Cell cell: getSelectedRow().cells) { - totalWidth += cell.getWidth() + 1; - } - return totalWidth; - } - - /** - * Get the full vertical height of this table. - * - * @return the height required to render the entire table - */ - private int getMaximumHeight() { - int totalHeight = 0; - if (showColumnLabels == true) { - // For now, all column labels are 1 cell tall. TODO: make this - // adjustable. - totalHeight += 1; - } - for (Cell cell: getSelectedColumn().cells) { - totalHeight += cell.getHeight(); - // TODO: handle top/bottom borders. - } - return totalHeight; - } - /** * Align the grid so that the selected cell is fully visible. *