Package icyllis.modernui.text.style
Interface TrailingMarginSpan
- All Superinterfaces:
ParagraphStyle
- All Known Implementing Classes:
CodeBlockSpan
,TrailingMarginSpan.Standard
A paragraph style affecting the trailing margin.
TrailingMarginSpans should be attached from the first character to the last character of a single paragraph.
Added by Modern UI.
- Since:
- 3.8
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the amount by which to adjust the trailing margin.
-
Method Details
-
getTrailingMargin
int getTrailingMargin()Returns the amount by which to adjust the trailing margin. Positive values move away from the trailing edge of the paragraph, negative values move towards it.The trailing margin is on the right for lines in a left-to-right paragraph, and on the left for lines in a right-to-left paragraph.
- Returns:
- the offset for the margin.
-