Class RichText.Run

java.lang.Object
io.keikai.axyra.sheets.content.RichText.Run
Enclosing class:
RichText

public static final class RichText.Run extends Object
Per-run font overrides, created with RichText.run(). A property left unset inherits the cell font.
  • Constructor Details

    • Run

      public Run()
  • Method Details

    • bold

      public RichText.Run bold()
      Makes the run bold.
    • italic

      public RichText.Run italic()
      Makes the run italic.
    • underline

      public RichText.Run underline()
      Single-underlines the run.
    • strike

      public RichText.Run strike()
      Strikes through the run.
    • fontName

      public RichText.Run fontName(String name)
      Sets the run's font name, such as "Arial"; without it the run uses the cell font.
    • fontSize

      public RichText.Run fontSize(double points)
      Sets the run's font size in points.
    • color

      public RichText.Run color(Color color)
      Sets the run's font color. Only RGB colors are accepted.
      Throws:
      IllegalStateException - if color is a theme, indexed or automatic color
      NullPointerException - if color is null