|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swt.graphics.FontMetrics
Instances of this class provide measurement information
about fonts including ascent, descent, height, leading
space between rows, and average character width.
FontMetrics
are obtained from GC
s
using the getFontMetrics()
method.
GC.getFontMetrics()
Method Summary | |
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. |
int |
hashCode()
Returns an integer hash code for the receiver. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean equals(java.lang.Object object)
object
- the object to compare with this object
true
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 int hashCode()
true
when passed to
equals
must return the same value for this
method.
equals(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |