Class CommandLine.Help.Ansi.Palette256Color
- java.lang.Object
-
- org.apache.logging.log4j.core.tools.picocli.CommandLine.Help.Ansi.Palette256Color
-
- All Implemented Interfaces:
CommandLine.Help.Ansi.IStyle
- Enclosing class:
- CommandLine.Help.Ansi
static class CommandLine.Help.Ansi.Palette256Color extends java.lang.Object implements CommandLine.Help.Ansi.IStyle
Defines a palette map of 216 colors: 6 * 6 * 6 cube (216 colors): 16 + 36 * r + 6 * g + b (0 <= r, g, b <= 5).
-
-
Field Summary
Fields Modifier and Type Field Description private intcolorprivate intfgbg-
Fields inherited from interface org.apache.logging.log4j.core.tools.picocli.CommandLine.Help.Ansi.IStyle
CSI
-
-
Constructor Summary
Constructors Constructor Description Palette256Color(boolean foreground, java.lang.String color)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringoff()Returns the ANSI escape code for turning this style off.java.lang.Stringon()Returns the ANSI escape code for turning this style on.
-
-
-
Method Detail
-
on
public java.lang.String on()
Description copied from interface:CommandLine.Help.Ansi.IStyleReturns the ANSI escape code for turning this style on.- Specified by:
onin interfaceCommandLine.Help.Ansi.IStyle- Returns:
- the ANSI escape code for turning this style on
-
off
public java.lang.String off()
Description copied from interface:CommandLine.Help.Ansi.IStyleReturns the ANSI escape code for turning this style off.- Specified by:
offin interfaceCommandLine.Help.Ansi.IStyle- Returns:
- the ANSI escape code for turning this style off
-
-