Interface IFontExtension

All Known Implementing Classes:
Font

public interface IFontExtension
Extension interface for Font.
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    static final FormattedText
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    ellipsize(FormattedText text, int maxWidth)
    If the width of the text exceeds maxWidth, an ellipse is added and the text is substringed.
     
  • Field Details Link icon

  • Method Details Link icon

    • self Link icon

      Font self()
    • ellipsize Link icon

      default FormattedText ellipsize(FormattedText text, int maxWidth)
      If the width of the text exceeds maxWidth, an ellipse is added and the text is substringed.
      Parameters:
      text - the text to ellipsize if needed
      maxWidth - the maximum width of the text
      Returns:
      the ellipsized text