Interface TrailingMarginSpan

All Superinterfaces:
ParagraphStyle
All Known Implementing Classes:
CodeBlockSpan, TrailingMarginSpan.Standard

public interface TrailingMarginSpan extends ParagraphStyle
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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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.