Package | Description |
---|---|
org.refcodes.textual | |
org.refcodes.textual.impls |
Modifier and Type | Method and Description |
---|---|
default ColumnWidthMetrics |
ColumnWidthMetrics.withColumnWidthType(ColumnWidthType aColumnWidthType) |
Modifier and Type | Method and Description |
---|---|
TableBuilder |
TableBuilder.withColumnWidthMetrics(ColumnWidthMetrics aColumnWidthMetrics)
Sets the current column's (the last added one with the
TableBuilder.addColumn() method) width and returns this TableBuilder
instance as of the builder pattern. |
Modifier and Type | Class and Description |
---|---|
class |
ColumnWidthMetricsImpl
Defines a column's width either in char length or in percent; this is most
useful when
|
Modifier and Type | Method and Description |
---|---|
ColumnWidthMetrics |
ColumnWidthMetricsImpl.withColumnWidth(int aColumnWidth) |
Modifier and Type | Method and Description |
---|---|
protected static int[] |
TableBuilderImpl.toColumnWidths(int aTotalWidth,
ColumnWidthMetrics... aColumnWidths)
Calculates the columns widths in "number of chars" according to the
provided
ColumnWidthMetricsImpl instances in relation to the
provided total (available) width; the provided column widths can be a mix
of "number of char" widths (ColumnWidthType.ABSOLUTE ) and percent
(%) widths (ColumnWidthType.RELATIVE ). |
TableBuilder |
TableBuilderImpl.withColumnWidthMetrics(ColumnWidthMetrics aColumnWidth) |
Copyright © 2016. All rights reserved.