-
- All Implemented Interfaces:
public class FormattingDSL
-
-
Field Summary
Fields Modifier and Type Field Description private final RGBColorblackprivate final RGBColorwhiteprivate final RGBColorgreenprivate final RGBColorredprivate final RGBColorblueprivate final RGBColorgrayprivate final RGBColordarkGrayprivate final RGBColorlightGrayprivate final CellAttributesitalicprivate final CellAttributesboldprivate final CellAttributesunderlinepublic final static FormattingDSLINSTANCE
-
Method Summary
Modifier and Type Method Description final RGBColorrgb(Short r, Short g, Short b)final CellAttributesattr(String name, String value)final CellAttributesbackground(RGBColor color)final CellAttributesbackground(Short r, Short g, Short b)final CellAttributestextColor(RGBColor color)final CellAttributestextColor(Short r, Short g, Short b)final CellAttributeslinearBg(Number value, Pair<Number, RGBColor> from, Pair<Number, RGBColor> to)final RGBColorlinear(Number value, Pair<Number, RGBColor> from, Pair<Number, RGBColor> to)final RGBColorgetBlack()final RGBColorgetWhite()final RGBColorgetGreen()final RGBColorgetRed()final RGBColorgetBlue()final RGBColorgetGray()final RGBColorgetDarkGray()final RGBColorgetLightGray()final CellAttributesgetItalic()final CellAttributesgetBold()final CellAttributesgetUnderline()-
-
Method Detail
-
attr
final CellAttributes attr(String name, String value)
-
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()
-
-
-
-