public final class FontMetrics
extends java.lang.Object
FontMetrics are obtained from GCs
using the getFontMetrics() method.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Compares the argument to the receiver, and returns true
if they represent the same object using a class
specific comparison.
|
int |
getAscent()
Returns the ascent of the font described by the receiver.
|
int |
getAverageCharWidth()
Returns the average character width, measured in pixels,
of the font described by the receiver.
|
int |
getDescent()
Returns the descent of the font described by the receiver.
|
int |
getHeight()
Returns the height of the font described by the receiver,
measured in pixels.
|
int |
getLeading()
Returns the leading area of the font described by the
receiver.
|
static FontMetrics |
gtk_new(int ascent,
int descent,
int averageCharWidth,
int leading,
int height) |
int |
hashCode()
Returns an integer hash code for the receiver.
|
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the object to compare with this objecttrue if the object is the same as this object and false otherwisehashCode()public int getAscent()
public int getAverageCharWidth()
public int getDescent()
public int getHeight()
getAscent(),
getDescent(),
getLeading()public int getLeading()
public static FontMetrics gtk_new(int ascent, int descent, int averageCharWidth, int leading, int height)
public int hashCode()
true when passed to
equals must return the same value for this
method.hashCode in class java.lang.Objectequals(java.lang.Object)