Class Para

All Implemented Interfaces:
Element

public non-sealed class Para extends ParaPropComponent
  • Field Details

    • fontsContext

      public static Context<io.github.humbleui.skija.paragraph.FontCollection> fontsContext
    • fontManager

      public static final io.github.humbleui.skija.paragraph.TypefaceFontProvider fontManager
  • Constructor Details

    • Para

      public Para()
  • Method Details

    • loadFontFromResource

      public static void loadFontFromResource(String location) throws IOException
      Throws:
      IOException
    • getRef

      public Node getRef()
    • onBuild

      protected void onBuild(Para.Transitive transitive)
    • render

      public Element render()
      Specified by:
      render in class Component
    • getParagraph

      public io.github.humbleui.skija.paragraph.Paragraph getParagraph()
    • from

      public static Para from(io.github.humbleui.skija.paragraph.Paragraph paragraph)
    • from

      public static Para from(Supplier<io.github.humbleui.skija.paragraph.Paragraph> paragraph)
    • fromString

      public static Para fromString(String string)
    • fromString

      public static Para fromString(Supplier<String> string)