java.lang.Object
com.anotherbigidea.flash.movie.Font.Chars
- Enclosing class:
- Font
- public class Font.Chars
- extends java.lang.Object
A set of contiguous characters in one font.
chars
protected java.lang.String chars
size
protected double size
indices
protected int[] indices
advances
protected int[] advances
totalAdvance
protected double totalAdvance
ascent
protected double ascent
descent
protected double descent
leftMargin
protected double leftMargin
rightMargin
protected double rightMargin
Font.Chars
protected Font.Chars(java.lang.String chars,
double size)
throws Font.NoGlyphException
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
getFont
public Font getFont()
getSize
public double getSize()
getTotalAdvance
public double getTotalAdvance()
getAscent
public double getAscent()
getDescent
public double getDescent()
getLeftMargin
public double getLeftMargin()
- The left margin is the difference between the origin of the
first glyph and the left edge of its geometry
getRightMargin
public double getRightMargin()
- The right margin is the different between the total advance and
the right edge of the geometry of the last glyph
init
protected void init()
throws Font.NoGlyphException