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 classTextColor.ANSIThis class represent classic ANSI colors that are likely to be very compatible with most terminal implementations.static classTextColor.IndexedThis class represents a color expressed in the indexed XTerm 256 color extension, where each color is defined in a lookup-table.static classTextColor.RGBThis 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 TextColorTextCharacter. backgroundColorprivate TextColorTextCharacter. foregroundColorMethods in com.googlecode.lanterna that return TextColor Modifier and Type Method Description static TextColorTextColor.Factory. fromString(java.lang.String value)Parses a string into a color.TextColorTextCharacter. getBackgroundColor()Background color specified for this TextCharacterTextColorTextCharacter. 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)TextCharacterTextCharacter. withBackgroundColor(TextColor backgroundColor)Returns a copy of this TextCharacter with a specified background colorTextCharacterTextCharacter. 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 newScreenCharacterbased 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 TextColorDefaultMutableThemeStyle. backgroundprotected TextColorAbstractTextGraphics. backgroundColorprivate TextColorNullTextGraphics. backgroundColorprivate TextColorStyleSet.Set. backgroundColorprivate TextColorTextGraphicsWriter. backgroundColorprivate TextColorDefaultMutableThemeStyle. foregroundprotected TextColorAbstractTextGraphics. foregroundColorprivate TextColorNullTextGraphics. foregroundColorprivate TextColorStyleSet.Set. foregroundColorprivate TextColorTextGraphicsWriter. foregroundColorFields 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. backgroundMapprivate java.util.Map<java.lang.String,TextColor>AbstractTheme.ThemeTreeNode. foregroundMapMethods in com.googlecode.lanterna.graphics that return TextColor Modifier and Type Method Description TextColorAbstractTheme.StyleImpl. getBackground()TextColorDefaultMutableThemeStyle. getBackground()TextColorThemeStyle. getBackground()Returns the background color associated with this styleTextColorAbstractTextGraphics. getBackgroundColor()TextColorNullTextGraphics. getBackgroundColor()TextColorStyleSet. getBackgroundColor()Returns the current background colorTextColorStyleSet.Set. getBackgroundColor()TextColorTextGraphicsWriter. getBackgroundColor()TextColorAbstractTheme.StyleImpl. getForeground()TextColorDefaultMutableThemeStyle. getForeground()TextColorThemeStyle. getForeground()Returns the foreground color associated with this styleTextColorAbstractTextGraphics. getForegroundColor()TextColorNullTextGraphics. getForegroundColor()TextColorStyleSet. getForegroundColor()Returns the current foreground colorTextColorStyleSet.Set. getForegroundColor()TextColorTextGraphicsWriter. getForegroundColor()private TextColorAbstractTheme.ThemeTreeNode. parseValue(java.lang.String value)Methods in com.googlecode.lanterna.graphics with parameters of type TextColor Modifier and Type Method Description SimpleTheme.DefinitionSimpleTheme. 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 SimpleThemeSimpleTheme. 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.DefinitionSimpleTheme.Definition. setActive(TextColor foreground, TextColor background, SGR... styles)Sets the theme definition style "active"DefaultMutableThemeStyleDefaultMutableThemeStyle. setBackground(TextColor background)Modifies the background color of thisDefaultMutableThemeStyleto the value passed inTextGraphicsAbstractTextGraphics. setBackgroundColor(TextColor backgroundColor)TextGraphicsNullTextGraphics. setBackgroundColor(TextColor backgroundColor)StyleSet.SetStyleSet.Set. setBackgroundColor(TextColor backgroundColor)TStyleSet. setBackgroundColor(TextColor backgroundColor)Updates the current background colorTextGraphicsWriterTextGraphicsWriter. setBackgroundColor(TextColor background)SimpleTheme.DefinitionSimpleTheme.Definition. setCustom(java.lang.String name, TextColor foreground, TextColor background, SGR... styles)Adds a custom definition style to the theme using the supplied name.DefaultMutableThemeStyleDefaultMutableThemeStyle. setForeground(TextColor foreground)Modifies the foreground color of thisDefaultMutableThemeStyleto the value passed inTextGraphicsAbstractTextGraphics. setForegroundColor(TextColor foregroundColor)TextGraphicsNullTextGraphics. setForegroundColor(TextColor foregroundColor)StyleSet.SetStyleSet.Set. setForegroundColor(TextColor foregroundColor)TStyleSet. setForegroundColor(TextColor foregroundColor)Updates the current foreground colorTextGraphicsWriterTextGraphicsWriter. setForegroundColor(TextColor foreground)SimpleTheme.DefinitionSimpleTheme.Definition. setInsensitive(TextColor foreground, TextColor background, SGR... styles)Sets the theme definition style "insensitive"SimpleTheme.DefinitionSimpleTheme.Definition. setPreLight(TextColor foreground, TextColor background, SGR... styles)Sets the theme definition style "prelight"SimpleTheme.DefinitionSimpleTheme.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 newDefaultMutableThemeStylewith 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 newSimpleThemeobject 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 TextColorLabel. backgroundColorprivate TextColorEmptySpace. colorprivate TextColorPanel. fillColorOverrideprivate TextColorLabel. foregroundColorMethods in com.googlecode.lanterna.gui2 that return TextColor Modifier and Type Method Description TextColorDefaultTextGUIGraphics. getBackgroundColor()TextColorLabel. getBackgroundColor()Returns the background color used when drawing the label, ornullif the color is read from the current theme.TextColorEmptySpace. getColor()Returns the color this component is drawn with, ornullif this component uses whatever the default color the theme is set to useTextColorPanel. getFillColorOverride()Returns the color used to override the default background color from the theme, if set.TextColorDefaultTextGUIGraphics. getForegroundColor()TextColorLabel. getForegroundColor()Returns the foreground color used when drawing the label, ornullif the color is read from the current theme.Methods in com.googlecode.lanterna.gui2 with parameters of type TextColor Modifier and Type Method Description DefaultTextGUIGraphicsDefaultTextGUIGraphics. setBackgroundColor(TextColor backgroundColor)LabelLabel. setBackgroundColor(TextColor backgroundColor)Overrides the current theme's background color and use the one specified.TextGUIGraphicsTextGUIGraphics. setBackgroundColor(TextColor backgroundColor)voidEmptySpace. setColor(TextColor color)Changes the color this component will use when drawnvoidPanel. setFillColorOverride(TextColor fillColor)Sets an override color to be used instead of the theme's color for Panels when drawing unused space.DefaultTextGUIGraphicsDefaultTextGUIGraphics. setForegroundColor(TextColor foregroundColor)LabelLabel. setForegroundColor(TextColor foregroundColor)Overrides the current theme's foreground color and use the one specified.TextGUIGraphicsTextGUIGraphics. 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 voidIOSafeTerminal. setBackgroundColor(TextColor color)voidIOSafeTerminalAdapter. setBackgroundColor(TextColor color)voidTerminal. setBackgroundColor(TextColor color)Changes the background color for all the following characters put to the terminal.voidIOSafeTerminal. setForegroundColor(TextColor color)voidIOSafeTerminalAdapter. setForegroundColor(TextColor color)voidTerminal. 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 voidANSITerminal. setBackgroundColor(TextColor color)voidANSITerminal. 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 TextColorTerminalEmulatorDeviceConfiguration. cursorColorMethods in com.googlecode.lanterna.terminal.swing that return TextColor Modifier and Type Method Description TextColorTerminalEmulatorDeviceConfiguration. 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 voidAWTTerminal. setBackgroundColor(TextColor color)voidAWTTerminalFrame. setBackgroundColor(TextColor color)voidGraphicalTerminalImplementation. setBackgroundColor(TextColor color)voidScrollingAWTTerminal. setBackgroundColor(TextColor color)voidScrollingSwingTerminal. setBackgroundColor(TextColor color)voidSwingTerminal. setBackgroundColor(TextColor color)voidSwingTerminalFrame. setBackgroundColor(TextColor color)voidAWTTerminal. setForegroundColor(TextColor color)voidAWTTerminalFrame. setForegroundColor(TextColor color)voidGraphicalTerminalImplementation. setForegroundColor(TextColor color)voidScrollingAWTTerminal. setForegroundColor(TextColor color)voidScrollingSwingTerminal. setForegroundColor(TextColor color)voidSwingTerminal. setForegroundColor(TextColor color)voidSwingTerminalFrame. setForegroundColor(TextColor color)java.awt.ColorTerminalEmulatorColorConfiguration. 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.TerminalEmulatorDeviceConfigurationTerminalEmulatorDeviceConfiguration. 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 TextColorDefaultVirtualTerminal. activeBackgroundColorprivate TextColorDefaultVirtualTerminal. activeForegroundColorMethods in com.googlecode.lanterna.terminal.virtual with parameters of type TextColor Modifier and Type Method Description voidDefaultVirtualTerminal. setBackgroundColor(TextColor color)voidDefaultVirtualTerminal. setForegroundColor(TextColor color)
-