Class Style
java.lang.Object
org.strassburger.tui4j.formatting.Style
Represents text style attributes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbg(org.strassburger.colorlab4j.color.Color color) bold()booleanfg(org.strassburger.colorlab4j.color.Color color) org.strassburger.colorlab4j.color.Colororg.strassburger.colorlab4j.color.ColorinthashCode()inverse()booleanisBold()booleanbooleanConvert this style to ANSI escape codestoString()
-
Constructor Details
-
Style
public Style()Default style -
Style
Copy constructor
-
-
Method Details
-
toAnsiCodes
Convert this style to ANSI escape codes- Returns:
- the ANSI escape codes representing this style
-
fg
-
bg
-
bold
-
underline
-
inverse
-
getForeground
public org.strassburger.colorlab4j.color.Color getForeground() -
getBackground
public org.strassburger.colorlab4j.color.Color getBackground() -
isBold
public boolean isBold() -
isUnderline
public boolean isUnderline() -
isInverse
public boolean isInverse() -
toString
-
equals
-
hashCode
public int hashCode()
-