public class TerminalEmulatorPalette extends Object
Modifier and Type | Field and Description |
---|---|
static TerminalEmulatorPalette |
DEFAULT
Default colors the SwingTerminal is using if you don't specify anything
|
static TerminalEmulatorPalette |
GNOME_TERMINAL
Values taken from gnome-terminal on Ubuntu
|
static TerminalEmulatorPalette |
MAC_OS_X_TERMINAL_APP
Values taken from
wikipedia, these are supposed to be what terminal.app on MacOSX is using.
|
static TerminalEmulatorPalette |
PUTTY
Values taken from
wikipedia, these are supposed to be what putty is using.
|
static TerminalEmulatorPalette |
STANDARD_VGA
Values taken from
wikipedia, these are supposed to be the standard VGA palette.
|
static TerminalEmulatorPalette |
WINDOWS_XP_COMMAND_PROMPT
Values taken from
wikipedia, these are supposed to be what Windows XP cmd is using.
|
static TerminalEmulatorPalette |
XTERM
Values taken from
wikipedia, these are supposed to be what xterm is using.
|
Constructor and Description |
---|
TerminalEmulatorPalette(Color defaultColor,
Color defaultBrightColor,
Color defaultBackgroundColor,
Color normalBlack,
Color brightBlack,
Color normalRed,
Color brightRed,
Color normalGreen,
Color brightGreen,
Color normalYellow,
Color brightYellow,
Color normalBlue,
Color brightBlue,
Color normalMagenta,
Color brightMagenta,
Color normalCyan,
Color brightCyan,
Color normalWhite,
Color brightWhite)
Creates a new palette with all colors specified up-front
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Color |
get(TextColor.ANSI color,
boolean isForeground,
boolean useBrightTones)
Returns the AWT color from this palette given an ANSI color and two hints for if we are looking for a background
color and if we want to use the bright version.
|
int |
hashCode() |
String |
toString() |
public static final TerminalEmulatorPalette GNOME_TERMINAL
public static final TerminalEmulatorPalette STANDARD_VGA
public static final TerminalEmulatorPalette WINDOWS_XP_COMMAND_PROMPT
public static final TerminalEmulatorPalette MAC_OS_X_TERMINAL_APP
public static final TerminalEmulatorPalette PUTTY
public static final TerminalEmulatorPalette XTERM
public static final TerminalEmulatorPalette DEFAULT
public TerminalEmulatorPalette(Color defaultColor, Color defaultBrightColor, Color defaultBackgroundColor, Color normalBlack, Color brightBlack, Color normalRed, Color brightRed, Color normalGreen, Color brightGreen, Color normalYellow, Color brightYellow, Color normalBlue, Color brightBlue, Color normalMagenta, Color brightMagenta, Color normalCyan, Color brightCyan, Color normalWhite, Color brightWhite)
defaultColor
- Default color which no specific color has been selecteddefaultBrightColor
- Default color which no specific color has been selected but bold is enableddefaultBackgroundColor
- Default color to use for the background when no specific color has been selectednormalBlack
- Color for normal blackbrightBlack
- Color for bright blacknormalRed
- Color for normal redbrightRed
- Color for bright rednormalGreen
- Color for normal greenbrightGreen
- Color for bright greennormalYellow
- Color for normal yellowbrightYellow
- Color for bright yellownormalBlue
- Color for normal bluebrightBlue
- Color for bright bluenormalMagenta
- Color for normal magentabrightMagenta
- Color for bright magentanormalCyan
- Color for normal cyanbrightCyan
- Color for bright cyannormalWhite
- Color for normal whitebrightWhite
- Color for bright whitepublic Color get(TextColor.ANSI color, boolean isForeground, boolean useBrightTones)
color
- Which ANSI color we want to extractisForeground
- Is this color we extract going to be used as a background color?useBrightTones
- If true, we should return the bright version of the colorCopyright © 2016. All rights reserved.