Interface StyleSet<T extends StyleSet<T>>
- All Known Subinterfaces:
TextGraphics, TextGUIGraphics, ThemedTextGraphics
- All Known Implementing Classes:
AbstractTextGraphics, DefaultTextGUIGraphics, DoublePrintingTextGraphics, NullTextGraphics, ScreenTextGraphics, StyleSet.Set, SubTextGraphics, TerminalTextGraphics, TextGraphicsWriter, TextGraphicsWriter.WordPart, VirtualTerminalTextGraphics
public interface StyleSet<T extends StyleSet<T>>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionRemoves all active modifiersdisableModifiers(SGR... modifiers) Removes zero or more modifiers from the set of currently active modifiersenableModifiers(SGR... modifiers) Adds zero or more modifiers to the set of currently active modifiersReturns all the SGR codes that are currently activeReturns the current background colorReturns the current foreground colorsetBackgroundColor(TextColor backgroundColor) Updates the current background colorsetForegroundColor(TextColor foregroundColor) Updates the current foreground colorsetModifiers(EnumSet<SGR> modifiers) Sets the active modifiers to exactly the set passed in to this method.setStyleFrom(StyleSet<?> source) copy colors and set of SGR codes
-
Method Details
-
getBackgroundColor
TextColor getBackgroundColor()Returns the current background color- Returns:
- Current background color
-
setBackgroundColor
-
getForegroundColor
TextColor getForegroundColor()Returns the current foreground color- Returns:
- Current foreground color
-
setForegroundColor
-
enableModifiers
-
disableModifiers
-
setModifiers
-
clearModifiers
-
getActiveModifiers
-
setStyleFrom
-