All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.SpecialFontMetrics

java.lang.Object
   |
   +----java.awt.FontMetrics
           |
           +----dtai.gwt.SpecialFontMetrics

public abstract class SpecialFontMetrics
extends FontMetrics
SpecialFontMetrics is an abstract class through which GWT can support self-rendered fonts (like those used for SignWriting for the deaf).


Variable Index

 o normalMetrics

Constructor Index

 o SpecialFontMetrics(SpecialFont)

Method Index

 o bytesAscent(byte[], int, int)
Returns the maximum ascent for showing the specified array of bytes in this Font.
 o charsAscent(char[], int, int)
Returns the maximum ascent for showing the specified array of characters in this Font.
 o getDescent()
Gets the font descent.
 o getLeading()
Gets the standard leading, or line spacing, for the font.
 o stringAscent(String)
Returns the maximum ascent for showing the specified String in this Font.

Variables

 o normalMetrics
 protected FontMetrics normalMetrics

Constructors

 o SpecialFontMetrics
 public SpecialFontMetrics(SpecialFont font)

Methods

 o getLeading
 public int getLeading()
Gets the standard leading, or line spacing, for the font. This is the logical amount of space to be reserved between the descent of one line of text and the ascent of the next line. The ascent metric is calculated to include this extra space.

Overrides:
getLeading in class FontMetrics
 o getDescent
 public int getDescent()
Gets the font descent. The font descent is the distance from the base line to the bottom of most Alphanumeric characters. Note, however, that some characters in the font may extend below this ascent.

Overrides:
getDescent in class FontMetrics
See Also:
getMaxDescent
 o stringAscent
 public int stringAscent(String str)
Returns the maximum ascent for showing the specified String in this Font.

Parameters:
str - the String to be measured
See Also:
charsAscent, bytesAscent
 o charsAscent
 public int charsAscent(char data[],
                        int off,
                        int len)
Returns the maximum ascent for showing the specified array of characters in this Font. The advance ascent is the amount by which the current point is moved from one character to the next in a line of text.

Parameters:
data - the array of characters to be measured
off - the start offset of the characters in the array
len - the number of characters to be measured from the array
See Also:
stringAscent, bytesAscent
 o bytesAscent
 public int bytesAscent(byte data[],
                        int off,
                        int len)
Returns the maximum ascent for showing the specified array of bytes in this Font.

Parameters:
data - the array of bytes to be measured
off - the start offset of the bytes in the array
len - the number of bytes to be measured from the array
See Also:
stringAscent, charsAscent

All Packages  Class Hierarchy  This Package  Previous  Next  Index