Modifier and Type | Class | Description |
---|---|---|
static class |
TextColor.ANSI |
This class represent classic ANSI colors that are likely to be very compatible with most terminal
implementations.
|
static class |
TextColor.Indexed |
This class represents a color expressed in the indexed XTerm 256 color extension, where each color is defined in a
lookup-table.
|
static class |
TextColor.RGB |
This class can be used to specify a color in 24-bit color space (RGB with 8-bit resolution per color).
|
Modifier and Type | Method | Description |
---|---|---|
static TextColor |
TextColor.Factory.fromString(String value) |
Parses a string into a color.
|
TextColor |
TextCharacter.getBackgroundColor() |
Background color specified for this TextCharacter
|
TextColor |
TextCharacter.getForegroundColor() |
Foreground color specified for this TextCharacter
|
Modifier and Type | Method | Description |
---|---|---|
TextCharacter |
TextCharacter.withBackgroundColor(TextColor backgroundColor) |
Returns a copy of this TextCharacter with a specified background color
|
TextCharacter |
TextCharacter.withForegroundColor(TextColor foregroundColor) |
Returns a copy of this TextCharacter with a specified foreground color
|
Constructor | Description |
---|---|
TextCharacter(char character,
TextColor foregroundColor,
TextColor backgroundColor,
SGR... styles) |
Creates a new
ScreenCharacter based on a physical character, color information and optional modifiers. |
TextCharacter(char character,
TextColor foregroundColor,
TextColor backgroundColor,
EnumSet<SGR> modifiers) |
Creates a new
ScreenCharacter based on a physical character, color information and a set of modifiers. |
Modifier and Type | Field | Description |
---|---|---|
protected TextColor |
AbstractTextGraphics.backgroundColor |
|
protected TextColor |
AbstractTextGraphics.foregroundColor |
Modifier and Type | Method | Description |
---|---|---|
TextColor |
DefaultMutableThemeStyle.getBackground() |
|
TextColor |
ThemeStyle.getBackground() |
Returns the background color associated with this style
|
TextColor |
AbstractTextGraphics.getBackgroundColor() |
|
TextColor |
StyleSet.getBackgroundColor() |
Returns the current background color
|
TextColor |
StyleSet.Set.getBackgroundColor() |
|
TextColor |
TextGraphicsWriter.getBackgroundColor() |
|
TextColor |
DefaultMutableThemeStyle.getForeground() |
|
TextColor |
ThemeStyle.getForeground() |
Returns the foreground color associated with this style
|
TextColor |
AbstractTextGraphics.getForegroundColor() |
|
TextColor |
StyleSet.getForegroundColor() |
Returns the current foreground color
|
TextColor |
StyleSet.Set.getForegroundColor() |
|
TextColor |
TextGraphicsWriter.getForegroundColor() |
Modifier and Type | Method | Description |
---|---|---|
SimpleTheme.Definition |
SimpleTheme.addOverride(Class<?> clazz,
TextColor foreground,
TextColor background,
SGR... styles) |
Adds an override for a particular class, or overwrites a previously defined override.
|
static SimpleTheme |
SimpleTheme.makeTheme(boolean activeIsBold,
TextColor baseForeground,
TextColor baseBackground,
TextColor editableForeground,
TextColor editableBackground,
TextColor selectedForeground,
TextColor selectedBackground,
TextColor guiBackground) |
Helper method that will quickly setup a new theme with some sensible component overrides.
|
SimpleTheme.Definition |
SimpleTheme.Definition.setActive(TextColor foreground,
TextColor background,
SGR... styles) |
Sets the theme definition style "active"
|
DefaultMutableThemeStyle |
DefaultMutableThemeStyle.setBackground(TextColor background) |
Modifies the background color of this
DefaultMutableThemeStyle to the value passed in |
TextGraphics |
AbstractTextGraphics.setBackgroundColor(TextColor backgroundColor) |
|
StyleSet.Set |
StyleSet.Set.setBackgroundColor(TextColor backgroundColor) |
|
T |
StyleSet.setBackgroundColor(TextColor backgroundColor) |
Updates the current background color
|
TextGraphicsWriter |
TextGraphicsWriter.setBackgroundColor(TextColor background) |
|
SimpleTheme.Definition |
SimpleTheme.Definition.setCustom(String name,
TextColor foreground,
TextColor background,
SGR... styles) |
Adds a custom definition style to the theme using the supplied name.
|
DefaultMutableThemeStyle |
DefaultMutableThemeStyle.setForeground(TextColor foreground) |
Modifies the foreground color of this
DefaultMutableThemeStyle to the value passed in |
TextGraphics |
AbstractTextGraphics.setForegroundColor(TextColor foregroundColor) |
|
StyleSet.Set |
StyleSet.Set.setForegroundColor(TextColor foregroundColor) |
|
T |
StyleSet.setForegroundColor(TextColor foregroundColor) |
Updates the current foreground color
|
TextGraphicsWriter |
TextGraphicsWriter.setForegroundColor(TextColor foreground) |
|
SimpleTheme.Definition |
SimpleTheme.Definition.setInsensitive(TextColor foreground,
TextColor background,
SGR... styles) |
Sets the theme definition style "insensitive"
|
SimpleTheme.Definition |
SimpleTheme.Definition.setPreLight(TextColor foreground,
TextColor background,
SGR... styles) |
Sets the theme definition style "prelight"
|
SimpleTheme.Definition |
SimpleTheme.Definition.setSelected(TextColor foreground,
TextColor background,
SGR... styles) |
Sets the theme definition style "selected"
|
Constructor | Description |
---|---|
DefaultMutableThemeStyle(TextColor foreground,
TextColor background,
SGR... sgrs) |
Creates a new
DefaultMutableThemeStyle with a specified style (foreground, background and SGR state) |
SimpleTheme(TextColor foreground,
TextColor background,
SGR... styles) |
Creates a new
SimpleTheme object that uses the supplied constructor arguments as the default style |
Modifier and Type | Method | Description |
---|---|---|
TextColor |
Label.getBackgroundColor() |
Returns the background color used when drawing the label, or
null if the color is read from the current
theme. |
TextColor |
TextGUIGraphics.getBackgroundColor() |
|
TextColor |
EmptySpace.getColor() |
Returns the color this component is drawn with, or
null if this component uses whatever the default color
the theme is set to use |
TextColor |
Panel.getFillColorOverride() |
Returns the color used to override the default background color from the theme, if set.
|
TextColor |
Label.getForegroundColor() |
Returns the foreground color used when drawing the label, or
null if the color is read from the current
theme. |
TextColor |
TextGUIGraphics.getForegroundColor() |
Modifier and Type | Method | Description |
---|---|---|
Label |
Label.setBackgroundColor(TextColor backgroundColor) |
Overrides the current theme's background color and use the one specified.
|
TextGUIGraphics |
TextGUIGraphics.setBackgroundColor(TextColor backgroundColor) |
|
void |
EmptySpace.setColor(TextColor color) |
Changes the color this component will use when drawn
|
void |
Panel.setFillColorOverride(TextColor fillColor) |
Sets an override color to be used instead of the theme's color for Panels when drawing unused space.
|
Label |
Label.setForegroundColor(TextColor foregroundColor) |
Overrides the current theme's foreground color and use the one specified.
|
TextGUIGraphics |
TextGUIGraphics.setForegroundColor(TextColor foregroundColor) |
Constructor | Description |
---|---|
EmptySpace(TextColor color) |
Creates an EmptySpace with a specified color and preferred size of 1x1
|
EmptySpace(TextColor color,
TerminalSize size) |
Creates an EmptySpace with a specified color (null will make it use a color from the theme) and preferred size
|
MultiWindowTextGUI(Screen screen,
TextColor backgroundColor) |
Deprecated.
It's preferred to use a custom background component if you want to customize the background color,
or change the theme
|
Modifier and Type | Method | Description |
---|---|---|
void |
IOSafeTerminal.setBackgroundColor(TextColor color) |
|
void |
IOSafeTerminalAdapter.setBackgroundColor(TextColor color) |
|
void |
Terminal.setBackgroundColor(TextColor color) |
Changes the background color for all the following characters put to the terminal.
|
void |
IOSafeTerminal.setForegroundColor(TextColor color) |
|
void |
IOSafeTerminalAdapter.setForegroundColor(TextColor color) |
|
void |
Terminal.setForegroundColor(TextColor color) |
Changes the foreground color for all the following characters put to the terminal.
|
Modifier and Type | Method | Description |
---|---|---|
void |
ANSITerminal.setBackgroundColor(TextColor color) |
|
void |
ANSITerminal.setForegroundColor(TextColor color) |
Modifier and Type | Method | Description |
---|---|---|
TextColor |
TerminalEmulatorDeviceConfiguration.getCursorColor() |
What color to draw the text cursor color in
|
Modifier and Type | Method | Description |
---|---|---|
void |
AWTTerminal.setBackgroundColor(TextColor color) |
|
void |
AWTTerminalFrame.setBackgroundColor(TextColor color) |
|
void |
ScrollingAWTTerminal.setBackgroundColor(TextColor color) |
|
void |
ScrollingSwingTerminal.setBackgroundColor(TextColor color) |
|
void |
SwingTerminal.setBackgroundColor(TextColor color) |
|
void |
SwingTerminalFrame.setBackgroundColor(TextColor color) |
|
void |
AWTTerminal.setForegroundColor(TextColor color) |
|
void |
AWTTerminalFrame.setForegroundColor(TextColor color) |
|
void |
ScrollingAWTTerminal.setForegroundColor(TextColor color) |
|
void |
ScrollingSwingTerminal.setForegroundColor(TextColor color) |
|
void |
SwingTerminal.setForegroundColor(TextColor color) |
|
void |
SwingTerminalFrame.setForegroundColor(TextColor color) |
|
Color |
TerminalEmulatorColorConfiguration.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.
|
TerminalEmulatorDeviceConfiguration |
TerminalEmulatorDeviceConfiguration.withCursorColor(TextColor cursorColor) |
Copies the current configuration.
|
Constructor | Description |
---|---|
TerminalEmulatorDeviceConfiguration(int lineBufferScrollbackSize,
int blinkLengthInMilliSeconds,
TerminalEmulatorDeviceConfiguration.CursorStyle cursorStyle,
TextColor cursorColor,
boolean cursorBlinking) |
Creates a new terminal device configuration object with all configurable values specified.
|
TerminalEmulatorDeviceConfiguration(int lineBufferScrollbackSize,
int blinkLengthInMilliSeconds,
TerminalEmulatorDeviceConfiguration.CursorStyle cursorStyle,
TextColor cursorColor,
boolean cursorBlinking,
boolean clipboardAvailable) |
Creates a new terminal device configuration object with all configurable values specified.
|
Modifier and Type | Method | Description |
---|---|---|
void |
DefaultVirtualTerminal.setBackgroundColor(TextColor color) |
|
void |
DefaultVirtualTerminal.setForegroundColor(TextColor color) |
Copyright © 2020. All rights reserved.