Uses of Interface
com.googlecode.lanterna.TextColor
-
-
Uses of TextColor in com.googlecode.lanterna
Classes in com.googlecode.lanterna that implement TextColor 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).Fields in com.googlecode.lanterna declared as TextColor Modifier and Type Field Description private TextColor
TextCharacter. backgroundColor
private TextColor
TextCharacter. foregroundColor
Methods in com.googlecode.lanterna that return TextColor Modifier and Type Method Description static TextColor
TextColor.Factory. fromString(java.lang.String value)
Parses a string into a color.TextColor
TextCharacter. getBackgroundColor()
Background color specified for this TextCharacterTextColor
TextCharacter. getForegroundColor()
Foreground color specified for this TextCharacterMethods in com.googlecode.lanterna with parameters of type TextColor Modifier and Type Method Description static TextCharacter[]
TextCharacter. fromCharacter(char c, TextColor foregroundColor, TextColor backgroundColor, SGR... modifiers)
static TextCharacter[]
TextCharacter. fromString(java.lang.String string, TextColor foregroundColor, TextColor backgroundColor, SGR... modifiers)
static TextCharacter[]
TextCharacter. fromString(java.lang.String string, TextColor foregroundColor, TextColor backgroundColor, java.util.EnumSet<SGR> modifiers)
TextCharacter
TextCharacter. withBackgroundColor(TextColor backgroundColor)
Returns a copy of this TextCharacter with a specified background colorTextCharacter
TextCharacter. withForegroundColor(TextColor foregroundColor)
Returns a copy of this TextCharacter with a specified foreground colorConstructors in com.googlecode.lanterna with parameters of type TextColor Constructor Description TextCharacter(char character, TextColor foregroundColor, TextColor backgroundColor, SGR... styles)
Deprecated.Use fromCharacter insteadTextCharacter(char character, TextColor foregroundColor, TextColor backgroundColor, java.util.EnumSet<SGR> modifiers)
Deprecated.Use fromCharacter insteadTextCharacter(java.lang.String character, TextColor foregroundColor, TextColor backgroundColor, java.util.EnumSet<SGR> modifiers)
Creates a newScreenCharacter
based on a physical character, color information and a set of modifiers. -
Uses of TextColor in com.googlecode.lanterna.graphics
Fields in com.googlecode.lanterna.graphics declared as TextColor Modifier and Type Field Description private TextColor
DefaultMutableThemeStyle. background
protected TextColor
AbstractTextGraphics. backgroundColor
private TextColor
NullTextGraphics. backgroundColor
private TextColor
StyleSet.Set. backgroundColor
private TextColor
TextGraphicsWriter. backgroundColor
private TextColor
DefaultMutableThemeStyle. foreground
protected TextColor
AbstractTextGraphics. foregroundColor
private TextColor
NullTextGraphics. foregroundColor
private TextColor
StyleSet.Set. foregroundColor
private TextColor
TextGraphicsWriter. foregroundColor
Fields in com.googlecode.lanterna.graphics with type parameters of type TextColor Modifier and Type Field Description private java.util.Map<java.lang.String,TextColor>
AbstractTheme.ThemeTreeNode. backgroundMap
private java.util.Map<java.lang.String,TextColor>
AbstractTheme.ThemeTreeNode. foregroundMap
Methods in com.googlecode.lanterna.graphics that return TextColor Modifier and Type Method Description TextColor
AbstractTheme.StyleImpl. getBackground()
TextColor
DefaultMutableThemeStyle. getBackground()
TextColor
ThemeStyle. getBackground()
Returns the background color associated with this styleTextColor
AbstractTextGraphics. getBackgroundColor()
TextColor
NullTextGraphics. getBackgroundColor()
TextColor
StyleSet. getBackgroundColor()
Returns the current background colorTextColor
StyleSet.Set. getBackgroundColor()
TextColor
TextGraphicsWriter. getBackgroundColor()
TextColor
AbstractTheme.StyleImpl. getForeground()
TextColor
DefaultMutableThemeStyle. getForeground()
TextColor
ThemeStyle. getForeground()
Returns the foreground color associated with this styleTextColor
AbstractTextGraphics. getForegroundColor()
TextColor
NullTextGraphics. getForegroundColor()
TextColor
StyleSet. getForegroundColor()
Returns the current foreground colorTextColor
StyleSet.Set. getForegroundColor()
TextColor
TextGraphicsWriter. getForegroundColor()
private TextColor
AbstractTheme.ThemeTreeNode. parseValue(java.lang.String value)
Methods in com.googlecode.lanterna.graphics with parameters of type TextColor Modifier and Type Method Description SimpleTheme.Definition
SimpleTheme. addOverride(java.lang.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 thisDefaultMutableThemeStyle
to the value passed inTextGraphics
AbstractTextGraphics. setBackgroundColor(TextColor backgroundColor)
TextGraphics
NullTextGraphics. setBackgroundColor(TextColor backgroundColor)
StyleSet.Set
StyleSet.Set. setBackgroundColor(TextColor backgroundColor)
T
StyleSet. setBackgroundColor(TextColor backgroundColor)
Updates the current background colorTextGraphicsWriter
TextGraphicsWriter. setBackgroundColor(TextColor background)
SimpleTheme.Definition
SimpleTheme.Definition. setCustom(java.lang.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 thisDefaultMutableThemeStyle
to the value passed inTextGraphics
AbstractTextGraphics. setForegroundColor(TextColor foregroundColor)
TextGraphics
NullTextGraphics. setForegroundColor(TextColor foregroundColor)
StyleSet.Set
StyleSet.Set. setForegroundColor(TextColor foregroundColor)
T
StyleSet. setForegroundColor(TextColor foregroundColor)
Updates the current foreground colorTextGraphicsWriter
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"Constructors in com.googlecode.lanterna.graphics with parameters of type TextColor Constructor Description DefaultMutableThemeStyle(TextColor foreground, TextColor background, SGR... sgrs)
Creates a newDefaultMutableThemeStyle
with a specified style (foreground, background and SGR state)DefaultMutableThemeStyle(TextColor foreground, TextColor background, java.util.EnumSet<SGR> sgrs)
SimpleTheme(TextColor foreground, TextColor background, SGR... styles)
Creates a newSimpleTheme
object that uses the supplied constructor arguments as the default style -
Uses of TextColor in com.googlecode.lanterna.gui2
Fields in com.googlecode.lanterna.gui2 declared as TextColor Modifier and Type Field Description private TextColor
Label. backgroundColor
private TextColor
EmptySpace. color
private TextColor
Panel. fillColorOverride
private TextColor
Label. foregroundColor
Methods in com.googlecode.lanterna.gui2 that return TextColor Modifier and Type Method Description TextColor
DefaultTextGUIGraphics. getBackgroundColor()
TextColor
Label. getBackgroundColor()
Returns the background color used when drawing the label, ornull
if the color is read from the current theme.TextColor
EmptySpace. getColor()
Returns the color this component is drawn with, ornull
if this component uses whatever the default color the theme is set to useTextColor
Panel. getFillColorOverride()
Returns the color used to override the default background color from the theme, if set.TextColor
DefaultTextGUIGraphics. getForegroundColor()
TextColor
Label. getForegroundColor()
Returns the foreground color used when drawing the label, ornull
if the color is read from the current theme.Methods in com.googlecode.lanterna.gui2 with parameters of type TextColor Modifier and Type Method Description DefaultTextGUIGraphics
DefaultTextGUIGraphics. setBackgroundColor(TextColor backgroundColor)
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 drawnvoid
Panel. setFillColorOverride(TextColor fillColor)
Sets an override color to be used instead of the theme's color for Panels when drawing unused space.DefaultTextGUIGraphics
DefaultTextGUIGraphics. setForegroundColor(TextColor foregroundColor)
Label
Label. setForegroundColor(TextColor foregroundColor)
Overrides the current theme's foreground color and use the one specified.TextGUIGraphics
TextGUIGraphics. setForegroundColor(TextColor foregroundColor)
Constructors in com.googlecode.lanterna.gui2 with parameters of type TextColor Constructor Description EmptySpace(TextColor color)
Creates an EmptySpace with a specified color and preferred size of 1x1EmptySpace(TextColor color, TerminalSize size)
Creates an EmptySpace with a specified color (null will make it use a color from the theme) and preferred sizeMultiWindowTextGUI(Screen screen, TextColor backgroundColor)
Deprecated.It's preferred to use a custom background component if you want to customize the background color, or you should change the theme. -
Uses of TextColor in com.googlecode.lanterna.terminal
Methods in com.googlecode.lanterna.terminal with parameters of type TextColor 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. -
Uses of TextColor in com.googlecode.lanterna.terminal.ansi
Methods in com.googlecode.lanterna.terminal.ansi with parameters of type TextColor Modifier and Type Method Description void
ANSITerminal. setBackgroundColor(TextColor color)
void
ANSITerminal. setForegroundColor(TextColor color)
-
Uses of TextColor in com.googlecode.lanterna.terminal.swing
Fields in com.googlecode.lanterna.terminal.swing declared as TextColor Modifier and Type Field Description private TextColor
TerminalEmulatorDeviceConfiguration. cursorColor
Methods in com.googlecode.lanterna.terminal.swing that return TextColor Modifier and Type Method Description TextColor
TerminalEmulatorDeviceConfiguration. getCursorColor()
What color to draw the text cursor color inMethods in com.googlecode.lanterna.terminal.swing with parameters of type TextColor Modifier and Type Method Description void
AWTTerminal. setBackgroundColor(TextColor color)
void
AWTTerminalFrame. setBackgroundColor(TextColor color)
void
GraphicalTerminalImplementation. 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
GraphicalTerminalImplementation. setForegroundColor(TextColor color)
void
ScrollingAWTTerminal. setForegroundColor(TextColor color)
void
ScrollingSwingTerminal. setForegroundColor(TextColor color)
void
SwingTerminal. setForegroundColor(TextColor color)
void
SwingTerminalFrame. setForegroundColor(TextColor color)
java.awt.Color
TerminalEmulatorColorConfiguration. toAWTColor(TextColor color, boolean isForeground, boolean inBoldContext)
Deprecated.This adds a runtime dependency to the java.desktop module which isn't declared in the module descriptor of lanterna.TerminalEmulatorDeviceConfiguration
TerminalEmulatorDeviceConfiguration. withCursorColor(TextColor cursorColor)
Copies the current configuration.Constructors in com.googlecode.lanterna.terminal.swing with parameters of type TextColor 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. -
Uses of TextColor in com.googlecode.lanterna.terminal.virtual
Fields in com.googlecode.lanterna.terminal.virtual declared as TextColor Modifier and Type Field Description private TextColor
DefaultVirtualTerminal. activeBackgroundColor
private TextColor
DefaultVirtualTerminal. activeForegroundColor
Methods in com.googlecode.lanterna.terminal.virtual with parameters of type TextColor Modifier and Type Method Description void
DefaultVirtualTerminal. setBackgroundColor(TextColor color)
void
DefaultVirtualTerminal. setForegroundColor(TextColor color)
-