Class StringUtil.TextLayoutInfo

  • Enclosing class:
    StringUtil

    public static class StringUtil.TextLayoutInfo
    extends java.lang.Object
    Contains layout information retrieved from a TextLayout.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TextLayoutInfo​(float newAscent, float newDescent, float newOffset, float newWidth)
      Default Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getAscent()
      Getter method for ascent.
      float getDescent()
      Getter method for descent.
      float getOffset()
      Getter method for offset.
      float getWidth()
      Getter method for width.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextLayoutInfo

        protected TextLayoutInfo​(float newAscent,
                                 float newDescent,
                                 float newOffset,
                                 float newWidth)
        Default Constructor.
        Parameters:
        newAscent - text ascent.
        newDescent - text descent.
        newOffset - text start offset.
        newWidth - text width.
    • Method Detail

      • getAscent

        public float getAscent()
        Getter method for ascent.
        Returns:
        the ascent
      • getDescent

        public float getDescent()
        Getter method for descent.
        Returns:
        the descent
      • getOffset

        public float getOffset()
        Getter method for offset.
        Returns:
        the offset
      • getWidth

        public float getWidth()
        Getter method for width.
        Returns:
        the width