ASCII-based table with minimal styling support. Can be used for structured logging and provides output like this:
+------------------------------------------------------+ | Name | Value | +===============+======================================+ | Game ID | 52050358-d7a1-4def-b53f-db2bee8aea33 | | Game name | My Cool Game | | Game URL | 'null' | | Description | 'null' | +------------------------------------------------------+
Attributes
- Companion
- object
- Source
- CPAsciiTable.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Adds styled header (one or more header cells).
Adds styled header (one or more header cells).
Value parameters
- cells
-
Header cells tuples (style, text). For multi-line cells - use
Seq(...)
.
Attributes
- Source
- CPAsciiTable.scala
Adds header (one or more header cells).
Adds header (one or more header cells).
Value parameters
- cells
-
Header cells. For multi-line cells - use
Seq(...)
.
Attributes
- Source
- CPAsciiTable.scala
Adds header (one or more header cells).
Adds header (one or more header cells).
Value parameters
- cells
-
Header cells. For multi-line cells - use
Seq(...)
.
Attributes
- Source
- CPAsciiTable.scala
Adds row (one or more row cells) with a given style.
Adds row (one or more row cells) with a given style.
Value parameters
- cells
-
Row cells tuples (style, text). For multi-line cells - use
Seq(...)
.
Attributes
- Source
- CPAsciiTable.scala
Adds row (one or more row cells).
Adds row (one or more row cells).
Value parameters
- cells
-
Row cells. For multi-line cells - use
Seq(...)
.
Attributes
- Source
- CPAsciiTable.scala
Adds row (one or more row cells).
Adds row (one or more row cells).
Value parameters
- cells
-
Row cells. For multi-line cells - use
Seq(...)
.
Attributes
- Source
- CPAsciiTable.scala
Adds single header cell with the default style..
Adds single header cell with the default style..
Value parameters
- lines
-
One or more cell lines.
Attributes
- Source
- CPAsciiTable.scala
Adds headers.
Adds row.
Adds single row cell with the default style.
Adds single row cell with the default style.
Value parameters
- lines
-
One or more row cells. Multiple lines will be printed on separate lines.
Attributes
- Source
- CPAsciiTable.scala
Adds horizontal separator row to the table.
Adds single header cell with the default style..
Adds single header cell with the default style..
Value parameters
- lines
-
One or more cell lines.
- style
-
Style to use. If empty string is given, then default header style CPAsciiTable.DFLT_HEADER_STYLE will be used. Style string is a comma-separated list of one of the following styles:
leftPad: x
- left padding ofx
characters.rightPad: x
- right padding ofx
characters.maxWidth: x
- maximum width ofx
characters.align: {left|center|right}
- left, center or right alignment.
Attributes
- Source
- CPAsciiTable.scala
Adds headers with the given style
.
Adds headers with the given style
.
Value parameters
- cells
-
Header cells.
- style
-
Style to use. If empty string is given, then default header style CPAsciiTable.DFLT_HEADER_STYLE will be used. Style string is a comma-separated list of one of the following styles:
leftPad: x
- left padding ofx
characters.rightPad: x
- right padding ofx
characters.maxWidth: x
- maximum width ofx
characters.align: {left|center|right}
- left, center or right alignment.
Attributes
- Source
- CPAsciiTable.scala
Adds single row cell with the default style.
Adds single row cell with the default style.
Value parameters
- lines
-
One or more row cells. Multiple lines will be printed on separate lines.
- style
-
Style to use. If empty string is given, then default header style CPAsciiTable.DFLT_HEADER_STYLE will be used. Style string is a comma-separated list of one of the following styles:
leftPad: x
- left padding ofx
characters.rightPad: x
- right padding ofx
characters.maxWidth: x
- maximum width ofx
characters.align: {left|center|right}
- left, center or right alignment.
Attributes
- Source
- CPAsciiTable.scala
Renders this table to log as debug.
Renders this table to log as debug.
Value parameters
- header
-
Optional header.
- log
-
Logger.
Attributes
- Source
- CPAsciiTable.scala
Ends data row.
Renders this table to log as error.
Renders this table to log as error.
Value parameters
- header
-
Optional header.
- log
-
Logger.
Attributes
- Source
- CPAsciiTable.scala
Renders this table to log as info.
Renders this table to log as info.
Value parameters
- header
-
Optional header.
- log
-
Logger.
Attributes
- Source
- CPAsciiTable.scala
Sets table's margin.
Sets table's margin.
Value parameters
- bottom
-
Bottom margin.
- left
-
Left margin.
- right
-
Right margin.
- top
-
Top margin.
Attributes
- Source
- CPAsciiTable.scala
Renders this table to output stream.
Renders this table to output stream.
Value parameters
- ps
-
Output stream.
Attributes
- Source
- CPAsciiTable.scala
Renders this table to file.
Renders this table to file.
Starts data row.
Renders this table as an image.
Renders this table as an image.
Value parameters
- skin
-
Skin function. The functions takes character and return a new pixel.
Attributes
- Source
- CPAsciiTable.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
- Source
- CPAsciiTable.scala
Renders this table to log as trace.
Renders this table to log as trace.
Value parameters
- header
-
Optional header.
- log
-
Logger.
Attributes
- Source
- CPAsciiTable.scala
Renders this table to log as warn.
Renders this table to log as warn.
Value parameters
- header
-
Optional header.
- log
-
Logger.
Attributes
- Source
- CPAsciiTable.scala
Concrete fields
If lines exceeds the style's maximum width it will be broken up either by nearest space (by whole words) or mid-word. Default value is true
.
If lines exceeds the style's maximum width it will be broken up either by nearest space (by whole words) or mid-word. Default value is true
.
Attributes
- Source
- CPAsciiTable.scala
Global flag indicating whether or not to draw inside horizontal lines between individual rows. Default value is false
.
Global flag indicating whether or not to draw inside horizontal lines between individual rows. Default value is false
.
Attributes
- Source
- CPAsciiTable.scala
Global Flag indicating whether of not to automatically draw horizontal lines for multiline rows. Default value is true
.
Global Flag indicating whether of not to automatically draw horizontal lines for multiline rows. Default value is true
.
Attributes
- Source
- CPAsciiTable.scala