Class StringUtil.TextLayoutInfo

java.lang.Object
net.sourceforge.jeuclid.elements.support.text.StringUtil.TextLayoutInfo
Enclosing class:
StringUtil

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

    • 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 Details

    • 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