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).
-
normalMetrics
-
-
SpecialFontMetrics(SpecialFont)
-
-
bytesAscent(byte[], int, int)
- Returns the maximum ascent for showing the specified array
of bytes in this Font.
-
charsAscent(char[], int, int)
- Returns the maximum ascent for showing the specified array
of characters in this Font.
-
getDescent()
- Gets the font descent.
-
getLeading()
- Gets the standard leading, or line spacing, for the font.
-
stringAscent(String)
- Returns the maximum ascent for showing the specified String
in this Font.
normalMetrics
protected FontMetrics normalMetrics
SpecialFontMetrics
public SpecialFontMetrics(SpecialFont font)
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
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
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
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
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