|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.swt.graphics.FontMetrics
Safe:
Field Summary | |
org.eclipse.swt.internal.win32.TEXTMETRIC |
handle
Suppressed: On Windows, handle is a Win32 TEXTMETRIC struct On Photon, handle is a Photon FontQueryInfo struct (Warning: This field is platform dependent) |
Constructor Summary | |
(package private) |
FontMetrics()
Prevents instances from being created outside the package. |
Method Summary | |
boolean |
equals(Object object)
Suppressed: Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
int |
getAscent()
Enabled: Returns the ascent of the font described by the receiver. |
int |
getAverageCharWidth()
Enabled: Returns the average character width, measured in pixels, of the font described by the receiver. |
int |
getDescent()
Enabled: Returns the descent of the font described by the receiver. |
int |
getHeight()
Enabled: Returns the height of the font described by the receiver, measured in pixels. |
int |
getLeading()
Enabled: Returns the leading area of the font described by the receiver. |
int |
hashCode()
Suppressed: Returns an integer hash code for the receiver. |
static FontMetrics |
win32_new(org.eclipse.swt.internal.win32.TEXTMETRIC handle)
Suppressed: Invokes platform specific functionality to allocate a new font metrics. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public org.eclipse.swt.internal.win32.TEXTMETRIC handle
Constructor Detail |
FontMetrics()
Method Detail |
public boolean equals(Object object)
equals
in class 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.
hashCode
in class Object
equals(java.lang.Object)
public static FontMetrics win32_new(org.eclipse.swt.internal.win32.TEXTMETRIC handle)
IMPORTANT: This method is not part of the public
API for FontMetrics
. It is marked public only so that
it can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |