-
public class FormattingDSL
-
-
Field Summary
Fields Modifier and Type Field Description private final RGBColor
black
private final RGBColor
white
private final RGBColor
green
private final RGBColor
red
private final RGBColor
blue
private final RGBColor
gray
private final RGBColor
darkGray
private final RGBColor
lightGray
private final CellAttributes
italic
private final CellAttributes
bold
private final CellAttributes
underline
public final static FormattingDSL
INSTANCE
-
Method Summary
Modifier and Type Method Description final RGBColor
rgb(Short r, Short g, Short b)
final CellAttributes
background(RGBColor color)
final CellAttributes
background(Short r, Short g, Short b)
final CellAttributes
textColor(RGBColor color)
final CellAttributes
textColor(Short r, Short g, Short b)
final CellAttributes
linearBg(Number value, Pair<Number, RGBColor> from, Pair<Number, RGBColor> to)
final RGBColor
linear(Number value, Pair<Number, RGBColor> from, Pair<Number, RGBColor> to)
final RGBColor
getBlack()
final RGBColor
getWhite()
final RGBColor
getGreen()
final RGBColor
getRed()
final RGBColor
getBlue()
final RGBColor
getGray()
final RGBColor
getDarkGray()
final RGBColor
getLightGray()
final CellAttributes
getItalic()
final CellAttributes
getBold()
final CellAttributes
getUnderline()
-
-
Method Detail
-
background
final CellAttributes background(RGBColor color)
-
background
final CellAttributes background(Short r, Short g, Short b)
-
textColor
final CellAttributes textColor(RGBColor color)
-
textColor
final CellAttributes textColor(Short r, Short g, Short b)
-
linearBg
final CellAttributes linearBg(Number value, Pair<Number, RGBColor> from, Pair<Number, RGBColor> to)
-
getDarkGray
final RGBColor getDarkGray()
-
getLightGray
final RGBColor getLightGray()
-
getItalic
final CellAttributes getItalic()
-
getBold
final CellAttributes getBold()
-
getUnderline
final CellAttributes getUnderline()
-
-
-
-