Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- Ansi - Class in com.diogonunes.jcolor
-
Provides a fluent API to generate ANSI escape sequences by specifying
Attributes of your format. - Ansi() - Constructor for class com.diogonunes.jcolor.Ansi
-
Default constructor.
- AnsiFormat - Class in com.diogonunes.jcolor
-
Abstracts an Array of
Attributes. - AnsiFormat(Attribute...) - Constructor for class com.diogonunes.jcolor.AnsiFormat
-
Creates a new format that bundles the given attributes.
- Attribute - Class in com.diogonunes.jcolor
-
Abstracts ANSI codes with intuitive names.
- Attribute() - Constructor for class com.diogonunes.jcolor.Attribute
-
Default constructor for subclasses.
B
- BACK_COLOR(int) - Static method in class com.diogonunes.jcolor.Attribute
-
Paints the background using an 8-bit color from the 256-color palette.
- BACK_COLOR(int, int, int) - Static method in class com.diogonunes.jcolor.Attribute
-
Paints the background using a 24-bit true color (RGB).
- BLACK_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background black.
- BLACK_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text black.
- BLUE_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background blue.
- BLUE_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text blue.
- BOLD() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that makes text bold.
- BRIGHT_BLACK_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background bright black.
- BRIGHT_BLACK_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text bright black.
- BRIGHT_BLUE_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background bright blue.
- BRIGHT_BLUE_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text bright blue.
- BRIGHT_CYAN_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background bright cyan.
- BRIGHT_CYAN_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text bright cyan.
- BRIGHT_GREEN_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background bright green.
- BRIGHT_GREEN_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text bright green.
- BRIGHT_MAGENTA_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background bright magenta.
- BRIGHT_MAGENTA_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text bright magenta.
- BRIGHT_RED_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background bright red.
- BRIGHT_RED_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text bright red.
- BRIGHT_WHITE_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background bright white.
- BRIGHT_WHITE_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text bright white.
- BRIGHT_YELLOW_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background bright yellow.
- BRIGHT_YELLOW_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text bright yellow.
C
- CLEAR() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that clears any format, restoring the terminal's default.
- CLEAR_SCREEN() - Static method in class com.diogonunes.jcolor.Command
-
Returns A Command that clears the terminal's text, equivalent to the command-line `clear`.
- colorize(Command) - Static method in class com.diogonunes.jcolor.Ansi
-
Applies a terminal command (e.g. clear screen).
- colorize(String, AnsiFormat) - Static method in class com.diogonunes.jcolor.Ansi
-
Wraps the text with the ANSI code defined by the given format.
- colorize(String, Attribute...) - Static method in class com.diogonunes.jcolor.Ansi
-
Wraps the text with the ANSI code that applies the given attributes.
- colorize(String, String) - Static method in class com.diogonunes.jcolor.Ansi
-
Wraps each line of the text with the given raw ANSI code and a trailing reset, so the format does not spill into subsequent prints.
- com.diogonunes.jcolor - package com.diogonunes.jcolor
- Command - Class in com.diogonunes.jcolor
-
Abstracts ANSI codes with intuitive names.
- CYAN_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background cyan.
- CYAN_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text cyan.
D
- DESATURATED() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that dims the text (alias of
Attribute.DIM()). - DIM() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that dims the text.
E
- ENCIRCLED() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that encircles the text.
F
- format(String) - Method in class com.diogonunes.jcolor.AnsiFormat
-
Wraps the given text with the ANSI code defined by this format.
- FRAMED() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that draws a frame around the text.
G
- generateCode(AnsiFormat) - Static method in class com.diogonunes.jcolor.Ansi
-
Generates the ANSI code that applies the attributes contained in the given format.
- generateCode(Attribute...) - Static method in class com.diogonunes.jcolor.Ansi
-
Generates the ANSI code that applies the given attributes.
- generateCode(Command) - Static method in class com.diogonunes.jcolor.Ansi
-
Generates the ANSI code for a terminal command.
- GREEN_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background green.
- GREEN_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text green.
H
- HIDDEN() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that hides the text (same color as background).
I
- ITALIC() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that makes text italic.
M
- MAGENTA_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background magenta.
- MAGENTA_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text magenta.
- makeItFabulous(String, Attribute...) - Static method in class com.diogonunes.jcolor.Ansi
-
Easter egg.
N
- NONE() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that applies no formatting.
O
- OVERLINED() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that draws a line above the text.
P
- POSTFIX - Static variable in class com.diogonunes.jcolor.Ansi
-
Every Ansi escape code must end with this POSTFIX.
- PREFIX - Static variable in class com.diogonunes.jcolor.Ansi
-
Every Ansi escape code begins with this PREFIX.
R
- RAPID_BLINK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that makes the text blink rapidly.
- RED_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background red.
- RED_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text red.
- RESET - Static variable in class com.diogonunes.jcolor.Ansi
-
Shorthand for the Ansi code that resets to the terminal's default format.
- REVERSE() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that swaps foreground and background colors.
S
- SATURATED() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that makes text bold (alias of
Attribute.BOLD()). - SEPARATOR - Static variable in class com.diogonunes.jcolor.Ansi
-
Two options must be separated by this SEPARATOR.
- SLOW_BLINK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that makes the text blink slowly.
- STRIKETHROUGH() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that strikes through the text.
T
- TEXT_COLOR(int) - Static method in class com.diogonunes.jcolor.Attribute
-
Paints the text using an 8-bit color from the 256-color palette.
- TEXT_COLOR(int, int, int) - Static method in class com.diogonunes.jcolor.Attribute
-
Paints the text using a 24-bit true color (RGB).
- toArray() - Method in class com.diogonunes.jcolor.AnsiFormat
-
Returns the attributes of this format as an array.
- toString() - Method in class com.diogonunes.jcolor.Attribute
-
Returns the Attribute's ANSI escape code.
- toString() - Method in class com.diogonunes.jcolor.Command
U
- UNDERLINE() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that underlines the text.
W
- WHITE_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background white.
- WHITE_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text white.
Y
- YELLOW_BACK() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the background yellow.
- YELLOW_TEXT() - Static method in class com.diogonunes.jcolor.Attribute
-
Returns An Attribute that paints the text yellow.
All Classes and Interfaces|All Packages|Constant Field Values