public class TerminalEmulatorColorConfiguration extends Object
Modifier and Type | Method | Description |
---|---|---|
static TerminalEmulatorColorConfiguration |
getDefault() |
This is the default settings that is used when you create a new SwingTerminal without specifying any color
configuration.
|
static TerminalEmulatorColorConfiguration |
newInstance(TerminalEmulatorPalette colorPalette) |
Creates a new color configuration based on a particular palette and with using brighter colors on bold text.
|
Color |
toAWTColor(TextColor color,
boolean isForeground,
boolean inBoldContext) |
Given a TextColor and a hint as to if the color is to be used as foreground or not and if we currently have
bold text enabled or not, it returns the closest AWT color that matches this.
|
public static TerminalEmulatorColorConfiguration getDefault()
public static TerminalEmulatorColorConfiguration newInstance(TerminalEmulatorPalette colorPalette)
colorPalette
- Palette to use for this color configurationpublic Color toAWTColor(TextColor color, boolean isForeground, boolean inBoldContext)
color
- What text color to convertisForeground
- Is the color intended to be used as foreground colorinBoldContext
- Is the color intended to be used for on a character this is boldCopyright © 2020. All rights reserved.