/** * Returns the width of each column in an array, column one being [0] and so on. * @param rows the table rows with rules and content * @param colNumbers number of columns in the table * @param ctx the original table context, the required width is taken from this context * @return an array with the width for each column */ default int[] calculateColumnWidths(LinkedList<AT_Row> rows, int colNumbers, AT_Context ctx){ return this.calculateColumnWidths(rows, colNumbers, ctx.getTextWidth()); } /**
/** * Returns the width of each column in an array, column one being [0] and so on. * @param rows the table rows with rules and content * @param colNumbers number of columns in the table * @param ctx the original table context, the required width is taken from this context * @return an array with the width for each column */ default int[] calculateColumnWidths(LinkedList<AT_Row> rows, int colNumbers, AT_Context ctx){ return this.calculateColumnWidths(rows, colNumbers, ctx.getTextWidth()); } /**
int[] colWidth = this.getCWC().calculateColumnWidths(rows, colNumbers, ctx.getTextWidth(width));
int[] colWidth = this.getCWC().calculateColumnWidths(rows, colNumbers, ctx.getTextWidth(width));