Modifier and Type | Method | Description |
---|---|---|
static SGR |
SGR.valueOf(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.
|
Modifier and Type | Method | Description |
---|---|---|
EnumSet<SGR> |
TextCharacter.getModifiers() |
Returns a set of all active modifiers on this TextCharacter
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
TextCharacter |
TextCharacter.withModifiers(Collection<SGR> modifiers) |
Returns a copy of this TextCharacter with specified list of SGR modifiers.
|
Constructor | Description |
---|---|
TextCharacter(char character,
TextColor foregroundColor,
TextColor backgroundColor,
SGR... styles) |
Creates a new
ScreenCharacter based on a physical character, color information and optional modifiers. |
Constructor | Description |
---|---|
TextCharacter(char character,
TextColor foregroundColor,
TextColor backgroundColor,
EnumSet<SGR> modifiers) |
Creates a new
ScreenCharacter based on a physical character, color information and a set of modifiers. |
Modifier and Type | Field | Description |
---|---|---|
protected EnumSet<SGR> |
AbstractTextGraphics.activeModifiers |
Modifier and Type | Method | Description |
---|---|---|
EnumSet<SGR> |
AbstractTextGraphics.getActiveModifiers() |
|
EnumSet<SGR> |
StyleSet.getActiveModifiers() |
Returns all the SGR codes that are currently active
|
EnumSet<SGR> |
StyleSet.Set.getActiveModifiers() |
|
EnumSet<SGR> |
TextGraphicsWriter.getActiveModifiers() |
|
EnumSet<SGR> |
DefaultMutableThemeStyle.getSGRs() |
|
EnumSet<SGR> |
ThemeStyle.getSGRs() |
Returns the set of SGR flags associated with this style.
|
Modifier and Type | Method | Description |
---|---|---|
SimpleTheme.Definition |
SimpleTheme.addOverride(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) |
|
T |
StyleSet.disableModifiers(SGR... modifiers) |
Removes zero or more modifiers from the set of currently active modifiers
|
StyleSet.Set |
StyleSet.Set.disableModifiers(SGR... modifiers) |
|
TextGraphicsWriter |
TextGraphicsWriter.disableModifiers(SGR... modifiers) |
|
TextGraphics |
AbstractTextGraphics.enableModifiers(SGR... modifiers) |
|
T |
StyleSet.enableModifiers(SGR... modifiers) |
Adds zero or more modifiers to the set of currently active modifiers
|
StyleSet.Set |
StyleSet.Set.enableModifiers(SGR... modifiers) |
|
TextGraphicsWriter |
TextGraphicsWriter.enableModifiers(SGR... modifiers) |
|
TextGraphics |
AbstractTextGraphics.putString(int column,
int row,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers) |
|
TextGraphics |
AbstractTextGraphics.putString(TerminalPosition position,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers) |
|
TextGraphics |
TextGraphics.putString(int column,
int row,
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,
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(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"
|
Modifier and Type | Method | Description |
---|---|---|
TextGraphics |
AbstractTextGraphics.putString(int column,
int row,
String string,
Collection<SGR> extraModifiers) |
|
TextGraphics |
TextGraphics.putString(int column,
int row,
String string,
Collection<SGR> extraModifiers) |
Puts a string on the screen at the specified position with the current colors and modifiers.
|
TextGraphics |
AbstractTextGraphics.setModifiers(EnumSet<SGR> modifiers) |
|
StyleSet.Set |
StyleSet.Set.setModifiers(EnumSet<SGR> modifiers) |
|
T |
StyleSet.setModifiers(EnumSet<SGR> modifiers) |
Sets the active modifiers to exactly the set passed in to this method.
|
TextGraphicsWriter |
TextGraphicsWriter.setModifiers(EnumSet<SGR> modifiers) |
|
DefaultMutableThemeStyle |
DefaultMutableThemeStyle.setSGRs(EnumSet<SGR> sgrs) |
Modifies the SGR modifiers of this
DefaultMutableThemeStyle to the values passed it. |
Constructor | Description |
---|---|
DefaultMutableThemeStyle(TextColor foreground,
TextColor background,
SGR... sgrs) |
Creates a new
DefaultMutableThemeStyle with a specified style (foreground, background and SGR state) |
SimpleTheme(TextColor foreground,
TextColor background,
SGR... styles) |
Creates a new
SimpleTheme object that uses the supplied constructor arguments as the default style |
Modifier and Type | Method | Description |
---|---|---|
EnumSet<SGR> |
TextGUIGraphics.getActiveModifiers() |
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 theme
|
TextGUIGraphics |
TextGUIGraphics.disableModifiers(SGR... modifiers) |
|
TextGUIGraphics |
TextGUIGraphics.enableModifiers(SGR... modifiers) |
|
TextGUIGraphics |
TextGUIGraphics.putString(int column,
int row,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers) |
|
TextGUIGraphics |
TextGUIGraphics.putString(TerminalPosition position,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers) |
|
Label |
Label.removeStyle(SGR sgr) |
Removes an additional SGR style used when drawing the label, previously added by
addStyle(..) . |
Modifier and Type | Method | Description |
---|---|---|
TextGraphics |
TextGUIGraphics.putString(int column,
int row,
String string,
Collection<SGR> extraModifiers) |
|
TextGUIGraphics |
TextGUIGraphics.setModifiers(EnumSet<SGR> modifiers) |
Modifier and Type | Method | Description |
---|---|---|
void |
IOSafeTerminal.disableSGR(SGR sgr) |
|
void |
IOSafeTerminalAdapter.disableSGR(SGR sgr) |
|
void |
Terminal.disableSGR(SGR sgr) |
Deactivates an
SGR (Selected Graphic Rendition) code which has previously been activated through
enableSGR(..) . |
void |
IOSafeTerminal.enableSGR(SGR sgr) |
|
void |
IOSafeTerminalAdapter.enableSGR(SGR sgr) |
|
void |
Terminal.enableSGR(SGR sgr) |
Activates an
SGR (Selected Graphic Rendition) code. |
Modifier and Type | Method | Description |
---|---|---|
void |
ANSITerminal.disableSGR(SGR sgr) |
|
void |
ANSITerminal.enableSGR(SGR sgr) |
Modifier and Type | Method | Description |
---|---|---|
void |
AWTTerminal.disableSGR(SGR sgr) |
|
void |
AWTTerminalFrame.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 |
ScrollingAWTTerminal.enableSGR(SGR sgr) |
|
void |
ScrollingSwingTerminal.enableSGR(SGR sgr) |
|
void |
SwingTerminal.enableSGR(SGR sgr) |
|
void |
SwingTerminalFrame.enableSGR(SGR sgr) |
Modifier and Type | Method | Description |
---|---|---|
void |
DefaultVirtualTerminal.disableSGR(SGR sgr) |
|
void |
DefaultVirtualTerminal.enableSGR(SGR sgr) |
Copyright © 2020. All rights reserved.