drawLeftBorder(range, borderType); drawRightBorder(range, borderType);
i, i); if (extent == BorderExtent.ALL || i > firstCol) { drawLeftBorder(row, borderType);
/** * <p> * Sets the color of the left 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 drawLeftBorderColor(CellRangeAddress range, short color) { int firstRow = range.getFirstRow(); int lastRow = range.getLastRow(); int col = range.getFirstColumn(); for (int i = firstRow; i <= lastRow; i++) { if (getBorderStyle(i, col, CellUtil.BORDER_LEFT) == BorderStyle.NONE) { drawLeftBorder(new CellRangeAddress(i, i, col, col), BorderStyle.THIN); } addProperty(i, col, CellUtil.LEFT_BORDER_COLOR, color); } }
break; case LEFT: drawLeftBorder(range, borderType); break; case RIGHT:
drawLeftBorder(range, borderType); drawRightBorder(range, borderType);
i, i); if (extent == BorderExtent.ALL || i > firstCol) { drawLeftBorder(row, borderType);
/** * <p> * Sets the color of the left 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 drawLeftBorderColor(CellRangeAddress range, short color) { int firstRow = range.getFirstRow(); int lastRow = range.getLastRow(); int col = range.getFirstColumn(); for (int i = firstRow; i <= lastRow; i++) { if (getBorderStyle(i, col, CellUtil.BORDER_LEFT) == BorderStyle.NONE) { drawLeftBorder(new CellRangeAddress(i, i, col, col), BorderStyle.THIN); } addProperty(i, col, CellUtil.LEFT_BORDER_COLOR, color); } }
break; case LEFT: drawLeftBorder(range, borderType); break; case RIGHT: