TextGraphics
, ThemedTextGraphics
AbstractTextGraphics
, DoublePrintingTextGraphics
, StyleSet.Set
, TextGraphicsWriter
, TextGUIGraphics
public interface StyleSet<T extends StyleSet<T>>
Modifier and Type | Interface | Description |
---|---|---|
static class |
StyleSet.Set |
Modifier and Type | Method | Description |
---|---|---|
T |
clearModifiers() |
Removes all active modifiers
|
T |
disableModifiers(SGR... modifiers) |
Removes zero or more modifiers from the set of currently active modifiers
|
T |
enableModifiers(SGR... modifiers) |
Adds zero or more modifiers to the set of currently active modifiers
|
EnumSet<SGR> |
getActiveModifiers() |
Returns all the SGR codes that are currently active
|
TextColor |
getBackgroundColor() |
Returns the current background color
|
TextColor |
getForegroundColor() |
Returns the current foreground color
|
T |
setBackgroundColor(TextColor backgroundColor) |
Updates the current background color
|
T |
setForegroundColor(TextColor foregroundColor) |
Updates the current foreground color
|
T |
setModifiers(EnumSet<SGR> modifiers) |
Sets the active modifiers to exactly the set passed in to this method.
|
T |
setStyleFrom(StyleSet<?> source) |
copy colors and set of SGR codes
|
TextColor getBackgroundColor()
T setBackgroundColor(TextColor backgroundColor)
backgroundColor
- New background colorTextColor getForegroundColor()
T setForegroundColor(TextColor foregroundColor)
foregroundColor
- New foreground colorT enableModifiers(SGR... modifiers)
modifiers
- Modifiers to add to the set of currently active modifiersT disableModifiers(SGR... modifiers)
modifiers
- Modifiers to remove from the set of currently active modifiersT setModifiers(EnumSet<SGR> modifiers)
modifiers
- Modifiers to set as activeT clearModifiers()
EnumSet<SGR> getActiveModifiers()
Copyright © 2020. All rights reserved.