Class LineBreaker.ParagraphConstraints

java.lang.Object
icyllis.modernui.graphics.text.LineBreaker.ParagraphConstraints
Enclosing class:
LineBreaker

public static class LineBreaker.ParagraphConstraints extends Object
Line breaking constraints for single paragraph.
  • Constructor Details

    • ParagraphConstraints

      public ParagraphConstraints()
  • Method Details

    • setWidth

      public void setWidth(float width)
      Set width for this paragraph.
      See Also:
    • setIndent

      public void setIndent(float firstWidth)
      Set indent for this paragraph.
      Parameters:
      firstWidth - the line width of the starting of the paragraph
      See Also:
    • setTabStops

      public void setTabStops(@Nullable float[] tabStops, float defaultTabStop)
      Set tab stops for this paragraph.
      Parameters:
      tabStops - the array of pixels of tap stopping position
      defaultTabStop - pixels of the default tab stopping position
      See Also:
    • getWidth

      public float getWidth()
      Return the width for this paragraph in pixels.
      See Also:
    • getFirstWidth

      public float getFirstWidth()
      Return the first line's width for this paragraph in pixel.
      See Also:
    • getTabStops

      @Nullable public float[] getTabStops()
      Returns the array of tab stops in pixels.
      See Also:
    • getDefaultTabStop

      public float getDefaultTabStop()
      Returns the default tab stops in pixels.
      See Also: