Package icyllis.modernui.text.style
Interface LineHeightSpan
- All Superinterfaces:
ParagraphStyle
,WrapTogetherSpan
- All Known Implementing Classes:
HeadingSpan
The classes that affect the line height of paragraph should implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 textstart
- the start of the lineend
- the end of the linespanstartv
- the start of the spanlineHeight
- the line heightfm
- font metrics of the paint, in integerspaint
- the paint
-