Module com.googlecode.lanterna
Package com.googlecode.lanterna.graphics
Class AbstractTheme.StyleImpl
- java.lang.Object
-
- com.googlecode.lanterna.graphics.AbstractTheme.StyleImpl
-
- All Implemented Interfaces:
ThemeStyle
- Enclosing class:
- AbstractTheme
private class AbstractTheme.StyleImpl extends java.lang.Object implements ThemeStyle
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
private AbstractTheme.ThemeTreeNode
styleNode
-
Constructor Summary
Constructors Modifier Constructor Description private
StyleImpl(AbstractTheme.ThemeTreeNode node, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextColor
getBackground()
Returns the background color associated with this styleTextColor
getForeground()
Returns the foreground color associated with this stylejava.util.EnumSet<SGR>
getSGRs()
Returns the set of SGR flags associated with this style.
-
-
-
Field Detail
-
styleNode
private final AbstractTheme.ThemeTreeNode styleNode
-
name
private final java.lang.String name
-
-
Constructor Detail
-
StyleImpl
private StyleImpl(AbstractTheme.ThemeTreeNode node, java.lang.String name)
-
-
Method Detail
-
getForeground
public TextColor getForeground()
Description copied from interface:ThemeStyle
Returns the foreground color associated with this style- Specified by:
getForeground
in interfaceThemeStyle
- Returns:
- foreground color associated with this style
-
getBackground
public TextColor getBackground()
Description copied from interface:ThemeStyle
Returns the background color associated with this style- Specified by:
getBackground
in interfaceThemeStyle
- Returns:
- background color associated with this style
-
getSGRs
public java.util.EnumSet<SGR> getSGRs()
Description copied from interface:ThemeStyle
Returns the set of SGR flags associated with this style. ThisEnumSet
is either unmodifiable or a copy so altering it will not change the theme in any way.- Specified by:
getSGRs
in interfaceThemeStyle
- Returns:
- SGR flags associated with this style
-
-