Interface Style

All Superinterfaces:
Serializable
All Known Subinterfaces:
MdStyle, Style.Color, Style.CustomStyle
All Known Implementing Classes:
MdStyle.GFM, MdStyle.Heading, Style.Attr, Style.ColorHex, Style.ColorName, Style.LineThrough, Style.Preset, UnixTermStyle

public sealed interface Style extends Serializable permits Style.Attr, Style.Color, Style.LineThrough, Style.Preset, Style.CustomStyle
Text styles. Inspired by terminal-colors.d(5)
  • Method Details

    • and

      default Styles and()
    • italic

      @NotNull static @NotNull Style italic()
    • bold

      @NotNull static @NotNull Style bold()
    • strike

      @NotNull static @NotNull Style strike()
    • underline

      @NotNull static @NotNull Style underline()
    • color

      @NotNull static @NotNull Style.Color color(@NotNull @NotNull String colorName)
    • colorBg

      @NotNull static @NotNull Style.Color colorBg(@NotNull @NotNull String colorName)
    • color

      @NotNull static @NotNull Style.Color color(int color)
    • color

      @NotNull static @NotNull Style.Color color(float r, float g, float b)
    • colorBg

      @NotNull static @NotNull Style.Color colorBg(int color)
    • preset

      @NotNull static @NotNull Style preset(@NotNull @NotNull String styleName)