Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.anotherbigidea.flash.movie
Class Font.Chars  view Font.Chars download Font.Chars.java

java.lang.Object
  extended bycom.anotherbigidea.flash.movie.Font.Chars
Enclosing class:
Font

public class Font.Chars
extends java.lang.Object

A set of contiguous characters in one font.


Field Summary
protected  int[] advances
           
protected  double ascent
           
protected  java.lang.String chars
           
protected  double descent
           
protected  int[] indices
           
protected  double leftMargin
           
protected  double rightMargin
           
protected  double size
           
protected  double totalAdvance
           
 
Constructor Summary
protected Font.Chars(java.lang.String chars, double size)
           
 
Method Summary
 double getAscent()
           
 double getDescent()
           
 Font getFont()
           
 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()
           
 double getTotalAdvance()
           
protected  void init()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Font.Chars

protected Font.Chars(java.lang.String chars,
                     double size)
              throws Font.NoGlyphException
Method Detail

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