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 enumThis class represent classic ANSI colors that are likely to be very compatible with most terminal implementations.static classThis class represents a color expressed in the indexed XTerm 256 color extension, where each color is defined in a lookup-table.static classThis 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 TextColorTextCharacter.backgroundColorprivate final TextColorTextCharacter.foregroundColorMethods in com.googlecode.lanterna that return TextColorModifier and TypeMethodDescriptionstatic TextColorTextColor.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 insteadprivateTextCharacter(String character, TextColor foregroundColor, TextColor backgroundColor, 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 TextColorModifier and TypeFieldDescriptionprivate 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 TextColorModifier and TypeFieldDescriptionAbstractTheme.ThemeTreeNode.backgroundMapAbstractTheme.ThemeTreeNode.foregroundMapMethods 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 TextColorAbstractTheme.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 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.Sets the theme definition style "active"DefaultMutableThemeStyle.setBackground(TextColor background) Modifies the background color of thisDefaultMutableThemeStyleto 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 thisDefaultMutableThemeStyleto 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 newDefaultMutableThemeStylewith a specified style (foreground, background and SGR state)privateDefaultMutableThemeStyle(TextColor foreground, TextColor background, 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 TextColorModifier and TypeFieldDescriptionprivate TextColorLabel.backgroundColorprivate TextColorEmptySpace.colorprivate TextColorPanel.fillColorOverrideprivate TextColorLabel.foregroundColorMethods in com.googlecode.lanterna.gui2 that return TextColorModifier and TypeMethodDescriptionDefaultTextGUIGraphics.getBackgroundColor()Label.getBackgroundColor()Returns the background color used when drawing the label, ornullif the color is read from the current theme.EmptySpace.getColor()Returns the color this component is drawn with, ornullif 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, ornullif 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) voidChanges 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.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 TypeMethodDescriptionvoidIOSafeTerminal.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 TextColorModifier and TypeMethodDescriptionvoidANSITerminal.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 TextColorModifier and TypeFieldDescriptionprivate final TextColorTerminalEmulatorDeviceConfiguration.cursorColorMethods 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 TypeMethodDescriptionvoidAWTTerminal.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) 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 TextColorDefaultVirtualTerminal.activeBackgroundColorprivate TextColorDefaultVirtualTerminal.activeForegroundColorMethods in com.googlecode.lanterna.terminal.virtual with parameters of type TextColorModifier and TypeMethodDescriptionvoidDefaultVirtualTerminal.setBackgroundColor(TextColor color) voidDefaultVirtualTerminal.setForegroundColor(TextColor color)