Uses of Class
com.googlecode.lanterna.SGR
-
-
Uses of SGR in com.googlecode.lanterna
Fields in com.googlecode.lanterna with type parameters of type SGR Modifier and Type Field Description private java.util.EnumSet<SGR>
TextCharacter. modifiers
Methods in com.googlecode.lanterna that return SGR Modifier and Type Method Description static SGR
SGR. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SGR[]
SGR. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.googlecode.lanterna that return types with arguments of type SGR Modifier and Type Method Description java.util.EnumSet<SGR>
TextCharacter. getModifiers()
Returns a set of all active modifiers on this TextCharacterprivate static java.util.EnumSet<SGR>
TextCharacter. toEnumSet(SGR... modifiers)
Methods in com.googlecode.lanterna with parameters of type SGR 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)
private static java.util.EnumSet<SGR>
TextCharacter. toEnumSet(SGR... modifiers)
TextCharacter
TextCharacter. withModifier(SGR modifier)
Returns a copy of this TextCharacter with an additional SGR modifier.TextCharacter
TextCharacter. withoutModifier(SGR modifier)
Returns a copy of this TextCharacter with an SGR modifier removed.Method parameters in com.googlecode.lanterna with type arguments of type SGR Modifier and Type Method Description static TextCharacter[]
TextCharacter. fromString(java.lang.String string, TextColor foregroundColor, TextColor backgroundColor, java.util.EnumSet<SGR> modifiers)
TextCharacter
TextCharacter. withModifiers(java.util.Collection<SGR> modifiers)
Returns a copy of this TextCharacter with specified list of SGR modifiers.Constructors in com.googlecode.lanterna with parameters of type SGR Constructor Description TextCharacter(char character, TextColor foregroundColor, TextColor backgroundColor, SGR... styles)
Deprecated.Use fromCharacter insteadConstructor parameters in com.googlecode.lanterna with type arguments of type SGR Constructor Description TextCharacter(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 SGR in com.googlecode.lanterna.graphics
Fields in com.googlecode.lanterna.graphics with type parameters of type SGR Modifier and Type Field Description protected java.util.EnumSet<SGR>
AbstractTextGraphics. activeModifiers
private java.util.EnumSet<SGR>
NullTextGraphics. activeModifiers
private java.util.Map<java.lang.String,java.util.EnumSet<SGR>>
AbstractTheme.ThemeTreeNode. sgrMap
private java.util.EnumSet<SGR>
DefaultMutableThemeStyle. sgrs
private java.util.EnumSet<SGR>
StyleSet.Set. style
private java.util.EnumSet<SGR>
TextGraphicsWriter. style
Methods in com.googlecode.lanterna.graphics that return types with arguments of type SGR Modifier and Type Method Description java.util.EnumSet<SGR>
AbstractTextGraphics. getActiveModifiers()
java.util.EnumSet<SGR>
NullTextGraphics. getActiveModifiers()
java.util.EnumSet<SGR>
StyleSet. getActiveModifiers()
Returns all the SGR codes that are currently activejava.util.EnumSet<SGR>
StyleSet.Set. getActiveModifiers()
java.util.EnumSet<SGR>
TextGraphicsWriter. getActiveModifiers()
java.util.EnumSet<SGR>
AbstractTheme.StyleImpl. getSGRs()
java.util.EnumSet<SGR>
DefaultMutableThemeStyle. getSGRs()
java.util.EnumSet<SGR>
ThemeStyle. getSGRs()
Returns the set of SGR flags associated with this style.private java.util.EnumSet<SGR>
AbstractTheme.ThemeTreeNode. parseSGR(java.lang.String value)
Methods in com.googlecode.lanterna.graphics with parameters of type SGR 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.TextGraphics
AbstractTextGraphics. disableModifiers(SGR... modifiers)
TextGraphics
NullTextGraphics. disableModifiers(SGR... modifiers)
T
StyleSet. disableModifiers(SGR... modifiers)
Removes zero or more modifiers from the set of currently active modifiersStyleSet.Set
StyleSet.Set. disableModifiers(SGR... modifiers)
TextGraphicsWriter
TextGraphicsWriter. disableModifiers(SGR... modifiers)
TextGraphics
AbstractTextGraphics. enableModifiers(SGR... modifiers)
TextGraphics
NullTextGraphics. enableModifiers(SGR... modifiers)
T
StyleSet. enableModifiers(SGR... modifiers)
Adds zero or more modifiers to the set of currently active modifiersStyleSet.Set
StyleSet.Set. enableModifiers(SGR... modifiers)
TextGraphicsWriter
TextGraphicsWriter. enableModifiers(SGR... modifiers)
TextGraphics
AbstractTextGraphics. putString(int column, int row, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
TextGraphics
AbstractTextGraphics. putString(TerminalPosition position, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
TextGraphics
NullTextGraphics. putString(int column, int row, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
TextGraphics
NullTextGraphics. putString(TerminalPosition position, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
TextGraphics
TextGraphics. putString(int column, int row, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
Puts a string on the screen at the specified position with the current colors and modifiers.TextGraphics
TextGraphics. putString(TerminalPosition position, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
Shortcut to calling:SimpleTheme.Definition
SimpleTheme.Definition. setActive(TextColor foreground, TextColor background, SGR... styles)
Sets the theme definition style "active"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.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"Method parameters in com.googlecode.lanterna.graphics with type arguments of type SGR Modifier and Type Method Description private void
AbstractTextGraphics. disableModifiers(java.util.Collection<SGR> modifiers)
private void
AbstractTextGraphics. enableModifiers(java.util.Collection<SGR> modifiers)
TextGraphics
AbstractTextGraphics. putString(int column, int row, java.lang.String string, java.util.Collection<SGR> extraModifiers)
TextGraphics
NullTextGraphics. putString(int column, int row, java.lang.String string, java.util.Collection<SGR> extraModifiers)
TextGraphics
TextGraphics. putString(int column, int row, java.lang.String string, java.util.Collection<SGR> extraModifiers)
Puts a string on the screen at the specified position with the current colors and modifiers.TextGraphics
AbstractTextGraphics. setModifiers(java.util.EnumSet<SGR> modifiers)
TextGraphics
NullTextGraphics. setModifiers(java.util.EnumSet<SGR> modifiers)
StyleSet.Set
StyleSet.Set. setModifiers(java.util.EnumSet<SGR> modifiers)
T
StyleSet. setModifiers(java.util.EnumSet<SGR> modifiers)
Sets the active modifiers to exactly the set passed in to this method.TextGraphicsWriter
TextGraphicsWriter. setModifiers(java.util.EnumSet<SGR> modifiers)
DefaultMutableThemeStyle
DefaultMutableThemeStyle. setSGRs(java.util.EnumSet<SGR> sgrs)
Modifies the SGR modifiers of thisDefaultMutableThemeStyle
to the values passed it.Constructors in com.googlecode.lanterna.graphics with parameters of type SGR Constructor Description DefaultMutableThemeStyle(TextColor foreground, TextColor background, SGR... sgrs)
Creates a newDefaultMutableThemeStyle
with a specified style (foreground, background and SGR state)SimpleTheme(TextColor foreground, TextColor background, SGR... styles)
Creates a newSimpleTheme
object that uses the supplied constructor arguments as the default styleConstructor parameters in com.googlecode.lanterna.graphics with type arguments of type SGR Constructor Description DefaultMutableThemeStyle(TextColor foreground, TextColor background, java.util.EnumSet<SGR> sgrs)
-
Uses of SGR in com.googlecode.lanterna.gui2
Fields in com.googlecode.lanterna.gui2 with type parameters of type SGR Modifier and Type Field Description private java.util.EnumSet<SGR>
Label. additionalStyles
Methods in com.googlecode.lanterna.gui2 that return types with arguments of type SGR Modifier and Type Method Description java.util.EnumSet<SGR>
DefaultTextGUIGraphics. getActiveModifiers()
Methods in com.googlecode.lanterna.gui2 with parameters of type SGR Modifier and Type Method Description Label
Label. addStyle(SGR sgr)
Adds an additional SGR style to use when drawing the label, in case it wasn't enabled by the themeDefaultTextGUIGraphics
DefaultTextGUIGraphics. disableModifiers(SGR... modifiers)
TextGUIGraphics
TextGUIGraphics. disableModifiers(SGR... modifiers)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. enableModifiers(SGR... modifiers)
TextGUIGraphics
TextGUIGraphics. enableModifiers(SGR... modifiers)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. putString(int column, int row, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. putString(TerminalPosition position, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
TextGUIGraphics
TextGUIGraphics. putString(int column, int row, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
TextGUIGraphics
TextGUIGraphics. putString(TerminalPosition position, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
Label
Label. removeStyle(SGR sgr)
Removes an additional SGR style used when drawing the label, previously added byaddStyle(..)
.Method parameters in com.googlecode.lanterna.gui2 with type arguments of type SGR Modifier and Type Method Description DefaultTextGUIGraphics
DefaultTextGUIGraphics. putString(int column, int row, java.lang.String string, java.util.Collection<SGR> extraModifiers)
TextGUIGraphics
TextGUIGraphics. putString(int column, int row, java.lang.String string, java.util.Collection<SGR> extraModifiers)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. setModifiers(java.util.EnumSet<SGR> modifiers)
TextGUIGraphics
TextGUIGraphics. setModifiers(java.util.EnumSet<SGR> modifiers)
-
Uses of SGR in com.googlecode.lanterna.terminal
Methods in com.googlecode.lanterna.terminal with parameters of type SGR Modifier and Type Method Description void
IOSafeTerminal. disableSGR(SGR sgr)
void
IOSafeTerminalAdapter. disableSGR(SGR sgr)
void
Terminal. disableSGR(SGR sgr)
Deactivates anSGR
(Selected Graphic Rendition) code which has previously been activated throughenableSGR(..)
.void
IOSafeTerminal. enableSGR(SGR sgr)
void
IOSafeTerminalAdapter. enableSGR(SGR sgr)
void
Terminal. enableSGR(SGR sgr)
Activates anSGR
(Selected Graphic Rendition) code. -
Uses of SGR in com.googlecode.lanterna.terminal.ansi
Methods in com.googlecode.lanterna.terminal.ansi with parameters of type SGR Modifier and Type Method Description void
ANSITerminal. disableSGR(SGR sgr)
void
ANSITerminal. enableSGR(SGR sgr)
-
Uses of SGR in com.googlecode.lanterna.terminal.swing
Methods in com.googlecode.lanterna.terminal.swing with parameters of type SGR Modifier and Type Method Description void
AWTTerminal. disableSGR(SGR sgr)
void
AWTTerminalFrame. disableSGR(SGR sgr)
void
GraphicalTerminalImplementation. disableSGR(SGR sgr)
void
ScrollingAWTTerminal. disableSGR(SGR sgr)
void
ScrollingSwingTerminal. disableSGR(SGR sgr)
void
SwingTerminal. disableSGR(SGR sgr)
void
SwingTerminalFrame. disableSGR(SGR sgr)
void
AWTTerminal. enableSGR(SGR sgr)
void
AWTTerminalFrame. enableSGR(SGR sgr)
void
GraphicalTerminalImplementation. enableSGR(SGR sgr)
void
ScrollingAWTTerminal. enableSGR(SGR sgr)
void
ScrollingSwingTerminal. enableSGR(SGR sgr)
void
SwingTerminal. enableSGR(SGR sgr)
void
SwingTerminalFrame. enableSGR(SGR sgr)
-
Uses of SGR in com.googlecode.lanterna.terminal.virtual
Fields in com.googlecode.lanterna.terminal.virtual with type parameters of type SGR Modifier and Type Field Description private java.util.EnumSet<SGR>
DefaultVirtualTerminal. activeModifiers
Methods in com.googlecode.lanterna.terminal.virtual with parameters of type SGR Modifier and Type Method Description void
DefaultVirtualTerminal. disableSGR(SGR sgr)
void
DefaultVirtualTerminal. enableSGR(SGR sgr)
-