@Override public int getActualHeight(int width) { int actualHeight = 0; for (Renderer renderer : renderers) { actualHeight += renderer.getActualHeight(width); } return actualHeight; }
@Override public int getActualHeight(int width) { int actualHeight = 0; for (Renderer col : cols) { actualHeight = Math.max(actualHeight, col.getActualHeight(width)); } return actualHeight; }
int getActualHeight(int[] widths) { int actualHeight; switch (table.overflow) { case HIDDEN: actualHeight = 1; break; case WRAP: actualHeight = 0; for (int i = 0;i < widths.length;i++) { Renderer col = row.getCols().get(i); actualHeight = Math.max(actualHeight, col.getActualHeight(widths[i])); } break; default: throw new AssertionError(); } if (hasTop()) { actualHeight++; } if (hasBottom()) { actualHeight++; } return actualHeight; }