Uses of Interface
com.googlecode.lanterna.TextColor
Packages that use TextColor
Package
Description
-
Uses of TextColor in com.googlecode.lanterna
Classes in com.googlecode.lanterna that implement TextColorModifier and TypeClassDescriptionstatic enum
This class represent classic ANSI colors that are likely to be very compatible with most terminal implementations.static class
This class represents a color expressed in the indexed XTerm 256 color extension, where each color is defined in a lookup-table.static class
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 TextColorModifier and TypeFieldDescriptionprivate final TextColor
TextCharacter.backgroundColor
private final TextColor
TextCharacter.foregroundColor
Methods in com.googlecode.lanterna that return TextColorModifier and TypeMethodDescriptionstatic TextColor
TextColor.Factory.fromString
(String value) Parses a string into a color.TextCharacter.getBackgroundColor()
Background color specified for this TextCharacterTextCharacter.getForegroundColor()
Foreground color specified for this TextCharacterMethods in com.googlecode.lanterna with parameters of type TextColorModifier and TypeMethodDescriptionstatic TextCharacter[]
TextCharacter.fromCharacter
(char c, TextColor foregroundColor, TextColor backgroundColor, SGR... modifiers) static TextCharacter[]
TextCharacter.fromString
(String string, TextColor foregroundColor, TextColor backgroundColor, SGR... modifiers) static TextCharacter[]
TextCharacter.fromString
(String string, TextColor foregroundColor, TextColor backgroundColor, EnumSet<SGR> modifiers) TextCharacter.withBackgroundColor
(TextColor backgroundColor) Returns a copy of this TextCharacter with a specified background colorTextCharacter.withForegroundColor
(TextColor foregroundColor) Returns a copy of this TextCharacter with a specified foreground colorConstructors in com.googlecode.lanterna with parameters of type TextColorModifierConstructorDescriptionTextCharacter
(char character, TextColor foregroundColor, TextColor backgroundColor, SGR... styles) Deprecated.Use fromCharacter insteadTextCharacter
(char character, TextColor foregroundColor, TextColor backgroundColor, EnumSet<SGR> modifiers) Deprecated.Use fromCharacter insteadprivate
TextCharacter
(String character, TextColor foregroundColor, TextColor backgroundColor, 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 TextColorModifier and TypeFieldDescriptionprivate 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 TextColorModifier and TypeFieldDescriptionAbstractTheme.ThemeTreeNode.backgroundMap
AbstractTheme.ThemeTreeNode.foregroundMap
Methods in com.googlecode.lanterna.graphics that return TextColorModifier and TypeMethodDescriptionAbstractTheme.StyleImpl.getBackground()
DefaultMutableThemeStyle.getBackground()
ThemeStyle.getBackground()
Returns the background color associated with this styleAbstractTextGraphics.getBackgroundColor()
NullTextGraphics.getBackgroundColor()
StyleSet.getBackgroundColor()
Returns the current background colorStyleSet.Set.getBackgroundColor()
TextGraphicsWriter.getBackgroundColor()
AbstractTheme.StyleImpl.getForeground()
DefaultMutableThemeStyle.getForeground()
ThemeStyle.getForeground()
Returns the foreground color associated with this styleAbstractTextGraphics.getForegroundColor()
NullTextGraphics.getForegroundColor()
StyleSet.getForegroundColor()
Returns the current foreground colorStyleSet.Set.getForegroundColor()
TextGraphicsWriter.getForegroundColor()
private TextColor
AbstractTheme.ThemeTreeNode.parseValue
(String value) Methods in com.googlecode.lanterna.graphics with parameters of type TextColorModifier and TypeMethodDescriptionSimpleTheme.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.Sets the theme definition style "active"DefaultMutableThemeStyle.setBackground
(TextColor background) Modifies the background color of thisDefaultMutableThemeStyle
to the value passed inAbstractTextGraphics.setBackgroundColor
(TextColor backgroundColor) NullTextGraphics.setBackgroundColor
(TextColor backgroundColor) StyleSet.Set.setBackgroundColor
(TextColor backgroundColor) StyleSet.setBackgroundColor
(TextColor backgroundColor) Updates the current background colorTextGraphicsWriter.setBackgroundColor
(TextColor background) SimpleTheme.Definition.setCustom
(String name, TextColor foreground, TextColor background, SGR... styles) Adds a custom definition style to the theme using the supplied name.DefaultMutableThemeStyle.setForeground
(TextColor foreground) Modifies the foreground color of thisDefaultMutableThemeStyle
to the value passed inAbstractTextGraphics.setForegroundColor
(TextColor foregroundColor) NullTextGraphics.setForegroundColor
(TextColor foregroundColor) StyleSet.Set.setForegroundColor
(TextColor foregroundColor) StyleSet.setForegroundColor
(TextColor foregroundColor) Updates the current foreground colorTextGraphicsWriter.setForegroundColor
(TextColor foreground) SimpleTheme.Definition.setInsensitive
(TextColor foreground, TextColor background, SGR... styles) Sets the theme definition style "insensitive"SimpleTheme.Definition.setPreLight
(TextColor foreground, TextColor background, SGR... styles) Sets the theme definition style "prelight"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 TextColorModifierConstructorDescriptionDefaultMutableThemeStyle
(TextColor foreground, TextColor background, SGR... sgrs) Creates a newDefaultMutableThemeStyle
with a specified style (foreground, background and SGR state)private
DefaultMutableThemeStyle
(TextColor foreground, TextColor background, 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 TextColorModifier and TypeFieldDescriptionprivate TextColor
Label.backgroundColor
private TextColor
EmptySpace.color
private TextColor
Panel.fillColorOverride
private TextColor
Label.foregroundColor
Methods in com.googlecode.lanterna.gui2 that return TextColorModifier and TypeMethodDescriptionDefaultTextGUIGraphics.getBackgroundColor()
Label.getBackgroundColor()
Returns the background color used when drawing the label, ornull
if the color is read from the current theme.EmptySpace.getColor()
Returns the color this component is drawn with, ornull
if this component uses whatever the default color the theme is set to usePanel.getFillColorOverride()
Returns the color used to override the default background color from the theme, if set.DefaultTextGUIGraphics.getForegroundColor()
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 TextColorModifier and TypeMethodDescriptionDefaultTextGUIGraphics.setBackgroundColor
(TextColor backgroundColor) Label.setBackgroundColor
(TextColor backgroundColor) Overrides the current theme's background color and use the one specified.TextGUIGraphics.setBackgroundColor
(TextColor backgroundColor) void
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.setForegroundColor
(TextColor foregroundColor) Label.setForegroundColor
(TextColor foregroundColor) Overrides the current theme's foreground color and use the one specified.TextGUIGraphics.setForegroundColor
(TextColor foregroundColor) Constructors in com.googlecode.lanterna.gui2 with parameters of type TextColorModifierConstructorDescriptionEmptySpace
(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 TextColorModifier and TypeMethodDescriptionvoid
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 TextColorModifier and TypeMethodDescriptionvoid
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 TextColorModifier and TypeFieldDescriptionprivate final TextColor
TerminalEmulatorDeviceConfiguration.cursorColor
Methods in com.googlecode.lanterna.terminal.swing that return TextColorModifier and TypeMethodDescriptionTerminalEmulatorDeviceConfiguration.getCursorColor()
What color to draw the text cursor color inMethods in com.googlecode.lanterna.terminal.swing with parameters of type TextColorModifier and TypeMethodDescriptionvoid
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) 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.withCursorColor
(TextColor cursorColor) Copies the current configuration.Constructors in com.googlecode.lanterna.terminal.swing with parameters of type TextColorModifierConstructorDescriptionTerminalEmulatorDeviceConfiguration
(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 TextColorModifier and TypeFieldDescriptionprivate TextColor
DefaultVirtualTerminal.activeBackgroundColor
private TextColor
DefaultVirtualTerminal.activeForegroundColor
Methods in com.googlecode.lanterna.terminal.virtual with parameters of type TextColorModifier and TypeMethodDescriptionvoid
DefaultVirtualTerminal.setBackgroundColor
(TextColor color) void
DefaultVirtualTerminal.setForegroundColor
(TextColor color)