net.sourceforge.jeuclid.elements.support.text
Class StringUtil.TextLayoutInfo

java.lang.Object
  extended by 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 Summary
protected StringUtil.TextLayoutInfo(float newAscent, float newDescent, float newOffset, float newWidth)
          Default Constructor.
 
Method Summary
 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

StringUtil.TextLayoutInfo

protected StringUtil.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


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.