private void appendContentRow(StringBuilder graphic, int y, int width, CellMatrix<E> matrix) { graphic.append(style.getBound(Bounds.LEFT)); for (int x = 0; x < width - 1; x++) { graphic.append(appendCellContent(matrix, x, y)); graphic.append(style.getGrid(Orientation.VERTICAL)); } graphic.append(appendCellContent(matrix, width - 1, y)); graphic.append(style.getBound(Bounds.RIGHT)).append("\n"); }
public CellMatrixFormatter(CellMatrixFormatterStyle style) { this.style = style; horizontalUpper = getThree(style.getBound(Bounds.UPPER)); horizontal = getThree(style.getGrid(Orientation.HORIZONTAL)); horizontalLower = getThree(style.getBound(Bounds.LOWER)); }