Interface LineHeightSpan

All Superinterfaces:
ParagraphStyle, WrapTogetherSpan
All Known Implementing Classes:
HeadingSpan

public interface LineHeightSpan extends ParagraphStyle, WrapTogetherSpan
The classes that affect the line height of paragraph should implement this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    chooseHeight(CharSequence text, int start, int end, int spanstartv, int lineHeight, FontMetricsInt fm, TextPaint paint)
    Classes that implement this should define how the height is being calculated.
  • Method Details

    • chooseHeight

      void chooseHeight(CharSequence text, int start, int end, int spanstartv, int lineHeight, FontMetricsInt fm, TextPaint paint)
      Classes that implement this should define how the height is being calculated.
      Parameters:
      text - the text
      start - the start of the line
      end - the end of the line
      spanstartv - the start of the span
      lineHeight - the line height
      fm - font metrics of the paint, in integers
      paint - the paint