|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.tumba.parser.swf.Font.Chars
public class Font.Chars
A set of contiguous characters in one font.
Field Summary | |
---|---|
protected int[] |
advances
Description of the Field |
protected double |
ascent
Description of the Field |
protected java.lang.String |
chars
Description of the Field |
protected double |
descent
Description of the Field |
protected int[] |
indices
Description of the Field |
protected double |
leftMargin
Description of the Field |
protected double |
rightMargin
Description of the Field |
protected double |
size
Description of the Field |
protected double |
totalAdvance
Description of the Field |
Constructor Summary | |
---|---|
protected |
Font.Chars(java.lang.String chars,
double size)
|
Method Summary | |
---|---|
double |
getAscent()
Gets the ascent attribute of the Chars object |
double |
getDescent()
Gets the descent attribute of the Chars object |
Font |
getFont()
Gets the font attribute of the Chars object |
double |
getLeftMargin()
The left margin is the difference between the origin of the first glyph and the left edge of its geometry |
double |
getRightMargin()
The right margin is the different between the total advance and the right edge of the geometry of the last glyph |
double |
getSize()
Gets the size attribute of the Chars object |
double |
getTotalAdvance()
Gets the totalAdvance attribute of the Chars object |
protected void |
init()
Description of the Method |
java.lang.String |
toString()
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String chars
protected double size
protected int[] indices
protected int[] advances
protected double totalAdvance
protected double ascent
protected double descent
protected double leftMargin
protected double rightMargin
Constructor Detail |
---|
protected Font.Chars(java.lang.String chars, double size) throws Font.NoGlyphException
chars
- the characters to display (displayable
chars only - i.e. no newlines, tabs etc..)size
- point-size - only relevant if font is
not null
Font.NoGlyphException
- Description of the ExceptionMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public Font getFont()
public double getSize()
public double getTotalAdvance()
public double getAscent()
public double getDescent()
public double getLeftMargin()
public double getRightMargin()
protected final void init() throws Font.NoGlyphException
Font.NoGlyphException
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |