Interface SRichText

  • All Known Implementing Classes:
    AbstractRichTextAdv, ReadOnlyRichTextImpl, RichTextImpl

    public interface SRichText
    A rich text can have multiple segments which have different fonts for each one in a cell. However, note that the Segment might return a null Font if it wants to use the current cell's font. You can use RichTextHelper#getRichTextRealFont(SFont font, SCell cell) to get the real font used by the Segment.
    Since:
    3.5.0
    Author:
    dennis
    • Method Detail

      • getFont

        SFont getFont()
      • addSegment

        void addSegment​(String text,
                        SFont font)
      • clearSegments

        void clearSegments()
      • getHeightPoints

        int getHeightPoints()