Modifier and Type | Class and 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 and Description |
---|---|
TextColor |
TextCharacter.getBackgroundColor()
Background color specified for this TextCharacter
|
TextColor |
TextCharacter.getForegroundColor()
Foreground color specified for this TextCharacter
|
Modifier and Type | Method and 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 and Description |
---|
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. |
TextCharacter(char character,
TextColor foregroundColor,
TextColor backgroundColor,
SGR... styles)
Creates a new
ScreenCharacter based on a physical character, color information and optional modifiers. |
Modifier and Type | Field and Description |
---|---|
protected TextColor |
AbstractTextGraphics.backgroundColor |
protected TextColor |
AbstractTextGraphics.foregroundColor |
Modifier and Type | Method and Description |
---|---|
TextColor |
ThemeStyle.getBackground() |
TextColor |
TextGraphics.getBackgroundColor()
Returns the current background color
|
TextColor |
ImmutableThemedTextGraphics.getBackgroundColor() |
TextColor |
AbstractTextGraphics.getBackgroundColor() |
TextColor |
ThemeStyle.getForeground() |
TextColor |
TextGraphics.getForegroundColor()
Returns the current foreground color
|
TextColor |
ImmutableThemedTextGraphics.getForegroundColor() |
TextColor |
AbstractTextGraphics.getForegroundColor() |
Modifier and Type | Method and Description |
---|---|
TextGraphics |
TextGraphics.setBackgroundColor(TextColor backgroundColor)
Updates the current background color
|
ImmutableThemedTextGraphics |
ImmutableThemedTextGraphics.setBackgroundColor(TextColor backgroundColor) |
TextGraphics |
AbstractTextGraphics.setBackgroundColor(TextColor backgroundColor) |
TextGraphics |
TextGraphics.setForegroundColor(TextColor foregroundColor)
Updates the current foreground color
|
ImmutableThemedTextGraphics |
ImmutableThemedTextGraphics.setForegroundColor(TextColor foregroundColor) |
TextGraphics |
AbstractTextGraphics.setForegroundColor(TextColor foregroundColor) |
Modifier and Type | Method and Description |
---|---|
TextColor |
TextGUIGraphics.getBackgroundColor() |
TextColor |
Label.getBackgroundColor()
Returns the background color used when drawing the label, or
null if the color is read from the current
theme. |
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 |
TextGUIGraphics.getForegroundColor() |
TextColor |
Label.getForegroundColor()
Returns the foreground color used when drawing the label, or
null if the color is read from the current
theme. |
Modifier and Type | Method and Description |
---|---|
TextGUIGraphics |
TextGUIGraphics.setBackgroundColor(TextColor backgroundColor) |
Label |
Label.setBackgroundColor(TextColor backgroundColor)
Overrides the current theme's background color and use the one specified.
|
void |
EmptySpace.setColor(TextColor color)
Changes the color this component will use when drawn
|
TextGUIGraphics |
TextGUIGraphics.setForegroundColor(TextColor foregroundColor) |
Label |
Label.setForegroundColor(TextColor foregroundColor)
Overrides the current theme's foreground color and use the one specified.
|
Constructor and 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)
Creates a new
MultiWindowTextGUI that uses the specified Screen as the backend for all drawing
operations. |
Modifier and Type | Method and Description |
---|---|
void |
Terminal.setBackgroundColor(TextColor color)
Changes the background color for all the following characters put to the terminal.
|
void |
IOSafeTerminalAdapter.setBackgroundColor(TextColor color) |
void |
IOSafeTerminal.setBackgroundColor(TextColor color) |
void |
Terminal.setForegroundColor(TextColor color)
Changes the foreground color for all the following characters put to the terminal.
|
void |
IOSafeTerminalAdapter.setForegroundColor(TextColor color) |
void |
IOSafeTerminal.setForegroundColor(TextColor color) |
Modifier and Type | Method and Description |
---|---|
void |
ANSITerminal.setBackgroundColor(TextColor color) |
void |
ANSITerminal.setForegroundColor(TextColor color) |
Modifier and Type | Method and Description |
---|---|
TextColor |
TerminalEmulatorDeviceConfiguration.getCursorColor()
What color to draw the text cursor color in
|
Modifier and Type | Method and Description |
---|---|
void |
SwingTerminalFrame.setBackgroundColor(TextColor color) |
void |
SwingTerminal.setBackgroundColor(TextColor color) |
void |
ScrollingSwingTerminal.setBackgroundColor(TextColor color) |
void |
ScrollingAWTTerminal.setBackgroundColor(TextColor color) |
void |
AWTTerminalFrame.setBackgroundColor(TextColor color) |
void |
AWTTerminal.setBackgroundColor(TextColor color) |
void |
SwingTerminalFrame.setForegroundColor(TextColor color) |
void |
SwingTerminal.setForegroundColor(TextColor color) |
void |
ScrollingSwingTerminal.setForegroundColor(TextColor color) |
void |
ScrollingAWTTerminal.setForegroundColor(TextColor color) |
void |
AWTTerminalFrame.setForegroundColor(TextColor color) |
void |
AWTTerminal.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.
|
Constructor and 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.
|
Copyright © 2016. All rights reserved.