if (extent == BorderExtent.ALL || extent == BorderExtent.HORIZONTAL) { drawTopBorder(range, borderType); drawBottomBorder(range, borderType);
drawBottomBorder(row, borderType);
/** * <p> * Sets the color of the bottom border for a range of cells. * </p> * * @param range * - {@link CellRangeAddress} range of cells on which colors are * set. * @param color * - Color index from {@link IndexedColors} used to draw the * borders. */ private void drawBottomBorderColor(CellRangeAddress range, short color) { int row = range.getLastRow(); int firstCol = range.getFirstColumn(); int lastCol = range.getLastColumn(); for (int i = firstCol; i <= lastCol; i++) { if (getBorderStyle(row, i, CellUtil.BORDER_BOTTOM) == BorderStyle.NONE) { drawBottomBorder(new CellRangeAddress(row, row, i, i), BorderStyle.THIN); } addProperty(row, i, CellUtil.BOTTOM_BORDER_COLOR, color); } }
break; case BOTTOM: drawBottomBorder(range, borderType); break; case LEFT:
if (extent == BorderExtent.ALL || extent == BorderExtent.HORIZONTAL) { drawTopBorder(range, borderType); drawBottomBorder(range, borderType);
drawBottomBorder(row, borderType);
/** * <p> * Sets the color of the bottom border for a range of cells. * </p> * * @param range * - {@link CellRangeAddress} range of cells on which colors are * set. * @param color * - Color index from {@link IndexedColors} used to draw the * borders. */ private void drawBottomBorderColor(CellRangeAddress range, short color) { int row = range.getLastRow(); int firstCol = range.getFirstColumn(); int lastCol = range.getLastColumn(); for (int i = firstCol; i <= lastCol; i++) { if (getBorderStyle(row, i, CellUtil.BORDER_BOTTOM) == BorderStyle.NONE) { drawBottomBorder(new CellRangeAddress(row, row, i, i), BorderStyle.THIN); } addProperty(row, i, CellUtil.BOTTOM_BORDER_COLOR, color); } }
break; case BOTTOM: drawBottomBorder(range, borderType); break; case LEFT: