- TableBuilder - Interface in org.refcodes.textual
-
The table printer has the builder pattern applied to configure a text (ASCII)
table for later printing custom tables with a title, the table rows and if
required a table tail.
- TableBuilderImpl - Class in org.refcodes.textual.impls
-
- TableBuilderImpl() - Constructor for class org.refcodes.textual.impls.TableBuilderImpl
-
- TableBuilderImpl(int) - Constructor for class org.refcodes.textual.impls.TableBuilderImpl
-
- TablePrinter - Interface in org.refcodes.textual
-
- TableStatus - Enum in org.refcodes.textual
-
The
TableStatus
provides the status of the table, e.g. whether it has
begin printing the header, whether it has continued to print a row or whether
it has printed the tail.
- TableStyle - Enum in org.refcodes.textual
-
- TableStyleAccessor - Interface in org.refcodes.textual
-
Provides an accessor for a table style property.
- TableStyleAccessor.TableStyleBuilder<B extends TableStyleAccessor.TableStyleBuilder<?>> - Interface in org.refcodes.textual
-
Provides a mutator for an output stream property.
- TableStyleAccessor.TableStyleMutator - Interface in org.refcodes.textual
-
Provides a mutator for an output stream property.
- TableStyleAccessor.TableStyleProperty - Interface in org.refcodes.textual
-
Provides a table style property.
- TextAlignMode - Enum in org.refcodes.textual
-
The
TextAlignMode
specifies for according algorithms on how a line is
to be aligned.
- TextBlockMode - Enum in org.refcodes.textual
-
The
TextBlockMode
specifies how to arrange a text block in an
available area.
- TextBlockUtility - Class in org.refcodes.textual
-
- TextFormatMode - Enum in org.refcodes.textual
-
Determines how to format a text (in a table), e.g. do not format anything,
format the text only or format the whole cell containing the text, even blank
lines (important for the background).
- TextMetricsUtility - Class in org.refcodes.textual
-
- TextOutputUtility - Class in org.refcodes.textual
-
- TextPalette - Enum in org.refcodes.textual
-
An enumeration for text palette definitions to make it easy working with such
default palettes.
- toAlign(String, int, char, TextAlignMode) - Static method in class org.refcodes.textual.AlignTextUtility
-
Fills a text up on by appending the given char to the left and the right
till the given length is reached.
- toAlign(String[], int, char, TextAlignMode) - Static method in class org.refcodes.textual.AlignTextUtility
-
- toAlignBlock(String, int, char) - Static method in class org.refcodes.textual.AlignTextUtility
-
Fills a text up on by adding the given char to occurrences of the given
char round robin till given length is reached (block mode).
- toAlignBlock(String[], int, char) - Static method in class org.refcodes.textual.AlignTextUtility
-
- toAlignCenter(String, int, char) - Static method in class org.refcodes.textual.AlignTextUtility
-
Fills a text up on by appending the given char to the left and the right
till the given length is reached (align center).
- toAlignCenter(String[], int, char) - Static method in class org.refcodes.textual.AlignTextUtility
-
- toAlignLeft(String, int, char) - Static method in class org.refcodes.textual.AlignTextUtility
-
Fills a text up on by appending the given char to the right till the
given length is reached (align left).
- toAlignLeft(String[], int, char) - Static method in class org.refcodes.textual.AlignTextUtility
-
- toAlignRight(String, int, char) - Static method in class org.refcodes.textual.AlignTextUtility
-
Fills a text up by prepending the given char to the left till the given
length is reached (align right).
- toAlignRight(String[], int, char) - Static method in class org.refcodes.textual.AlignTextUtility
-
- toAscii(int, char[]) - Static method in class org.refcodes.textual.AsciiArtUtility
-
Converts an RGB value to an ASCII character from a palette if characters
as provided.
- toAscii(int) - Static method in class org.refcodes.textual.AsciiArtUtility
-
Converts an RGB value to an ASCII character from a palette if characters
as provided.
- toAsciiArt(String, int, String, int, char[]) - Static method in class org.refcodes.textual.AsciiArtUtility
-
This method creates an array of
String
instances containing the
given text as so called ASCII art rendered with the given
Font
name and
Font
SOAPBinding.Style
to fit into the given width.
- toAsciiArt(String, int, String, int) - Static method in class org.refcodes.textual.AsciiArtUtility
-
This method creates an array of
String
instances containing the
given text as so called ASCII art rendered with the given
Font
name and
Font
SOAPBinding.Style
to fit into the given width.
- toAsciiArt(String, Font) - Static method in class org.refcodes.textual.AsciiArtUtility
-
This method creates an array of
String
instances containing the
given text rendered with the given
Font
as so called ASCII art.
- toAsciiArt(String, Font, char[]) - Static method in class org.refcodes.textual.AsciiArtUtility
-
This method creates an array of
String
instances containing the
given text rendered with the given
Font
as so called ASCII art.
- toAsciiBorder(String[]) - Static method in class org.refcodes.textual.DrawTextUtility
-
Adds a predefined "single-line" border to the provided text.
- toBorder(String[], int, char) - Static method in class org.refcodes.textual.DrawTextUtility
-
Adds the according border with the given char and the provided witdh to
the provided text.
- toBorder(String[], char, char, char, char, char, char) - Static method in class org.refcodes.textual.DrawTextUtility
-
Adds a predefined border according border to the provided text.
- toBottomBorder(String[], int, char) - Static method in class org.refcodes.textual.DrawTextUtility
-
Adds the according border with the given char and the provided witdh to
the provided text.
- toColumns(String[][], TextBlockMode) - Static method in class org.refcodes.textual.TextBlockUtility
-
Creates an array of
String
arrays where all the arrays are of the
same length and where the arrays are all aligned as specified by the
passed
TextBlockMode
- toColumnWidths() - Method in class org.refcodes.textual.impls.TableBuilderImpl
-
- toColumnWidths() - Method in interface org.refcodes.textual.TableBuilder
-
Returns the currently calculated or configured column widths.
- toColumnWidths(int, ColumnWidth...) - Static method in class org.refcodes.textual.TextMetricsUtility
-
Calculates the columns widths in "number of chars" according to the
provided
ColumnWidthImpl
instances in relation to the provided
total (available) width; the provided column widths can be a mix of
"number of char" widths (
WidthType.ABSOLUTE
) and percent (%)
widths (
WidthType.RELATIVE
).
- toDebugPasswordText(String) - Static method in class org.refcodes.textual.HumanReadableUtility
-
This method provides a password hint by keeping the first and the last
characters of the password and exchanging the rest by an asterisk "*".
- toDoubleBorder(String[]) - Static method in class org.refcodes.textual.DrawTextUtility
-
Adds a predefined "double-line" border to the provided text.
- toEffictiveLength(String) - Static method in class org.refcodes.textual.PropertiesUtility
-
Calculates the effective length ignoring any ANSI escape sequences.
- toEscaped(String, String[][]) - Static method in class org.refcodes.textual.EscapeTextUtility
-
Escapes a text using the provided escape matrix which must be a two
dimensional array with two elements per line and where the element at
position 0 (of a line) represents the character and the element at
position 1 (of a line) the escaped character.
- toHeader(String...) - Method in class org.refcodes.textual.impls.TableBuilderImpl
-
- toHeader(String...) - Method in interface org.refcodes.textual.TablePrinter
-
Prints the table's header with the content of the provided columns.
- toHeaderBegin() - Method in class org.refcodes.textual.impls.TableBuilderImpl
-
- toHeaderBegin() - Method in interface org.refcodes.textual.TablePrinter
-
- toHeaderContinue(String...) - Method in class org.refcodes.textual.impls.TableBuilderImpl
-
- toHeaderContinue(String...) - Method in interface org.refcodes.textual.TablePrinter
-
- toHeaderEnd(TableBuilder) - Method in class org.refcodes.textual.impls.TableBuilderImpl
-
- toHeaderEnd() - Method in class org.refcodes.textual.impls.TableBuilderImpl
-
- toHeaderEnd(TableBuilder) - Method in interface org.refcodes.textual.TablePrinter
-
Ends the headers of the provided
TableBuilder
for this table
printer to continue; different header widths and column widths are taken
care of, so it is a pleasure to mix different
TableBuilder
s,
especially when empty columns may result in better using another column
layout making better use of the available width.
- toHeaderEnd() - Method in interface org.refcodes.textual.TablePrinter
-
- toInverseAsciiArt(String, int, String, int, char[]) - Static method in class org.refcodes.textual.AsciiArtUtility
-
Same as toAsciiArt
with inverted colors (black = white, dark =
bright, bright = dark, white = black).
- toInverseAsciiArt(String, int, String, int) - Static method in class org.refcodes.textual.AsciiArtUtility
-
Same as toAsciiArt
with inverted colors (black = white, dark =
bright, bright = dark, white = black).
- toInverseAsciiArt(String, Font) - Static method in class org.refcodes.textual.AsciiArtUtility
-
Same as toAsciiArt
with inverted colors (black = white, dark =
bright, bright = dark, white = black).
- toInverseAsciiArt(String, Font, char[]) - Static method in class org.refcodes.textual.AsciiArtUtility
-
Same as toAsciiArt
with inverted colors (black = white, dark =
bright, bright = dark, white = black).
- toLeftBorder(String[], int, char) - Static method in class org.refcodes.textual.DrawTextUtility
-
Adds the according border with the given char and the provided witdh to
the provided text.
- toLine(int, char) - Static method in class org.refcodes.textual.DrawTextUtility
-
Returns a
String
with the given length and containing only the
provided fill character.
- toMore(String, int, String, MoreTextMode) - Static method in class org.refcodes.textual.MoreTextUtility
-
- toMoreCenter(String, int, String) - Static method in class org.refcodes.textual.MoreTextUtility
-
Truncates a text by cutting the text from left to the right and from
right to left one by one to reach the given length.
- toMoreLeft(String, int, String) - Static method in class org.refcodes.textual.MoreTextUtility
-
Truncates a text by cutting the text from left to the right to reach the
given length.
- toMoreRight(String, int, String) - Static method in class org.refcodes.textual.MoreTextUtility
-
Truncates a text by cutting the text from left to the right to reach the
given length.
- toNonBreakingLine(String) - Static method in class org.refcodes.textual.TextBlockUtility
-
Creates a single line by replacing all new lines, line feeds and
tabulators from the given
String
by full stops or spaces
(heuristic) so that it is displayed in one single line.
- toNormalizedProperty(String) - Static method in class org.refcodes.textual.PropertiesUtility
-
Converts a Pascal case or camel case property to an "_" underscore
separated upper case property.
- toOverwriteLeft(String, String) - Static method in class org.refcodes.textual.AlignTextUtility
-
Overwrites a text starting at the left hand side with the given
"overwriting" text.
- toOverwriteRight(String, String) - Static method in class org.refcodes.textual.AlignTextUtility
-
Overwrites a text starting at the right hand side with the given
"overwriting" text.
- toProperties(String, char) - Static method in class org.refcodes.textual.PropertiesUtility
-
- toRandomAlphabetic(int) - Static method in class org.refcodes.textual.RandomTextUtility
-
Creates random alphabetic text with the given length.
- toRandomAlphanumeric(int) - Static method in class org.refcodes.textual.RandomTextUtility
-
Creates random alphanumeric text with the given length.
- toRandomAscii(int) - Static method in class org.refcodes.textual.RandomTextUtility
-
Creates random ASCII text with the given length.
- toRandomNumeric(int) - Static method in class org.refcodes.textual.RandomTextUtility
-
Creates random numeric text with the given length.
- toReplaced(String, String, String) - Static method in class org.refcodes.textual.FindAndReplaceUtility
-
Replaces all occurrences of a find-
String
with a replace-
String
in a text and returns the find-and-replace
String
.
- toReplaced(StringBuffer, String, String) - Static method in class org.refcodes.textual.FindAndReplaceUtility
-
Replaces a text by an other text in a StringBuffer.
- toRightBorder(String[], int, char) - Static method in class org.refcodes.textual.DrawTextUtility
-
Adds the according border with the given char and the provided witdh to
the provided text.
- toRow(String...) - Method in class org.refcodes.textual.impls.TableBuilderImpl
-
- toRow(String...) - Method in interface org.refcodes.textual.TablePrinter
-
Prints the table's (next) row with the content of the provided columns.
- toRowBegin() - Method in class org.refcodes.textual.impls.TableBuilderImpl
-
- toRowBegin() - Method in interface org.refcodes.textual.TablePrinter
-
- toRowContinue(String...) - Method in class org.refcodes.textual.impls.TableBuilderImpl
-
- toRowContinue(String...) - Method in interface org.refcodes.textual.TablePrinter
-
- toRowEnd(TableBuilder) - Method in class org.refcodes.textual.impls.TableBuilderImpl
-
- toRowEnd(TableBuilder) - Method in interface org.refcodes.textual.TablePrinter
-
Ends the rows of the provided
TableBuilder
for this table printer
to continue; different row widths and column widths are taken care of, so
it is a pleasure to mix different
TableBuilder
s, especially when
empty columns may result in better using another column layout making
better use of the available width.
- toSeparatedValue(Object) - Static method in class org.refcodes.textual.SeparatedValuesUtility
-
- toSeparatedValue(Object, char) - Static method in class org.refcodes.textual.SeparatedValuesUtility
-
Escapes a single value according to the rules of CSV like separated
values.
- toSeparatedValues(Collection<?>) - Static method in class org.refcodes.textual.SeparatedValuesUtility
-
- toSeparatedValues(Collection<?>, char) - Static method in class org.refcodes.textual.SeparatedValuesUtility
-
Takes the collection and creates a single
String
with the
provided separator.
- toSeparatedValues(Object[]) - Static method in class org.refcodes.textual.SeparatedValuesUtility
-
- toSeparatedValues(Object[], char) - Static method in class org.refcodes.textual.SeparatedValuesUtility
-
Takes the array's String representation and creates a single
String
with the provided separator.
- toSingleBorder(String[]) - Static method in class org.refcodes.textual.DrawTextUtility
-
Adds a predefined "single-line" border to the provided text.
- toSplitValue(Object, char) - Static method in class org.refcodes.textual.SeparatedValuesUtility
-
Creates the
String
representation of a single split value not
applying any escaping.
- toSplitValues(Object[]) - Static method in class org.refcodes.textual.SeparatedValuesUtility
-
- toSplitValues(Object[], char) - Static method in class org.refcodes.textual.SeparatedValuesUtility
-
Takes the array's String representation and creates a single
String
with the provided separator.
- toSplitValues(Collection<?>) - Static method in class org.refcodes.textual.SeparatedValuesUtility
-
- toSplitValues(Collection<?>, char) - Static method in class org.refcodes.textual.SeparatedValuesUtility
-
Takes the collection and creates a single
String
with the
provided separator.
- toString() - Method in enum org.refcodes.textual.FontName
-
- toString() - Method in enum org.refcodes.textual.FontStyle
-
- toString(Map<?, ?>) - Static method in class org.refcodes.textual.HumanReadableUtility
-
Generates a human readable
String
from the content of the map.
- toString(Collection<?>) - Static method in class org.refcodes.textual.HumanReadableUtility
-
Generates a human readable
String
from the content of the
collection.
- toString(Object[]) - Static method in class org.refcodes.textual.HumanReadableUtility
-
Generates a human readable
String
from the content of the array.
- toString(int[]) - Static method in class org.refcodes.textual.HumanReadableUtility
-
Generates a human readable
String
from the content of the array.
- toString(long[]) - Static method in class org.refcodes.textual.HumanReadableUtility
-
Generates a human readable
String
from the content of the array.
- toString(double[]) - Static method in class org.refcodes.textual.HumanReadableUtility
-
Generates a human readable
String
from the content of the array.
- toString(float[]) - Static method in class org.refcodes.textual.HumanReadableUtility
-
Generates a human readable
String
from the content of the array.
- toString(byte[]) - Static method in class org.refcodes.textual.HumanReadableUtility
-
Generates a human readable
String
from the content of the array.
- toString(char[]) - Static method in class org.refcodes.textual.HumanReadableUtility
-
Generates a human readable
String
from the content of the array.
- toString() - Method in class org.refcodes.textual.impls.ColumnWidthImpl
-
- toStrip(String, char[]) - Static method in class org.refcodes.textual.AlignTextUtility
-
Returns a new String without leading nor trailing chars.
- toStripLeft(String, char[]) - Static method in class org.refcodes.textual.AlignTextUtility
-
Returns a new String without leading chars.
- toStripRight(String, char[]) - Static method in class org.refcodes.textual.AlignTextUtility
-
Returns a new String without trailing chars.
- toTail() - Method in class org.refcodes.textual.impls.TableBuilderImpl
-
- toTail() - Method in interface org.refcodes.textual.TablePrinter
-
Finishes off the table by closing it.
- toTextBlock(String, int) - Static method in class org.refcodes.textual.TextBlockUtility
-
Cuts the
String
into sub
String
instances with the maximum
given length.
- toTextBlock(String, int, LineSplitMode) - Static method in class org.refcodes.textual.TextBlockUtility
-
Cuts the
String
into sub
String
instances with the maximum
given length.
- toTextBlock(String, int, TextAlignMode) - Static method in class org.refcodes.textual.TextBlockUtility
-
Cuts the
String
into sub
String
instances with the maximum
given length.
- toTextBlock(String, int, TextAlignMode, LineSplitMode) - Static method in class org.refcodes.textual.TextBlockUtility
-
Cuts the
String
into sub
String
instances with the maximum
given length.
- toTextBlock(String[], int, TextBlockMode) - Static method in class org.refcodes.textual.TextBlockUtility
-
Fills up or truncates a given text block to the provided height; filling
up or truncating depends on the
TextBlockMode
specified, the
default is
TextBlockMode.TOP
.
- toTopBorder(String[], int, char) - Static method in class org.refcodes.textual.DrawTextUtility
-
Adds the according border with the given char and the provided witdh to
the provided text.
- toUnEscaped(String, String[][]) - Static method in class org.refcodes.textual.EscapeTextUtility
-
Unescapes a text using the provided escape matrix which must be a two
dimensional array with two elements per line and where the element at
position 0 (of a line) represents the character and the element at
position 1 (of a line) the escaped character.
- valueOf(String) - Static method in enum org.refcodes.textual.FontName
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.textual.FontStyle
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.textual.LineSplitMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.textual.MoreTextMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.textual.TableStatus
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.textual.TableStyle
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.textual.TextAlignMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.textual.TextBlockMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.textual.TextFormatMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.textual.TextPalette
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.textual.WidthType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.refcodes.textual.FontName
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.textual.FontStyle
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.textual.LineSplitMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.textual.MoreTextMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.textual.TableStatus
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.textual.TableStyle
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.textual.TextAlignMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.textual.TextBlockMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.textual.TextFormatMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.textual.TextPalette
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.textual.WidthType
-
Returns an array containing the constants of this enum type, in
the order they are declared.