Package picocli
Class CommandLine.Help.Ansi.Palette256Color
- java.lang.Object
-
- 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 int
color
private int
fgbg
-
Fields inherited from interface 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 boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
off()
Returns the ANSI escape code for turning this style off.java.lang.String
on()
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.IStyle
Returns the ANSI escape code for turning this style on.- Specified by:
on
in 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.IStyle
Returns the ANSI escape code for turning this style off.- Specified by:
off
in interfaceCommandLine.Help.Ansi.IStyle
- Returns:
- the ANSI escape code for turning this style off
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-