Package | Description |
---|---|
org.eclipse.jface.dialogs |
Provides support for dialogs.
|
org.eclipse.swt.graphics |
SWT graphics classes.
|
Modifier and Type | Method and Description |
---|---|
static int |
Dialog.convertHeightInCharsToPixels(FontMetrics fontMetrics,
int chars)
Returns the number of pixels corresponding to the height of the given
number of characters.
|
static int |
Dialog.convertHorizontalDLUsToPixels(FontMetrics fontMetrics,
int dlus)
Returns the number of pixels corresponding to the given number of
horizontal dialog units.
|
static int |
Dialog.convertVerticalDLUsToPixels(FontMetrics fontMetrics,
int dlus)
Returns the number of pixels corresponding to the given number of
vertical dialog units.
|
static int |
Dialog.convertWidthInCharsToPixels(FontMetrics fontMetrics,
int chars)
Returns the number of pixels corresponding to the width of the given
number of characters.
|
Modifier and Type | Method and Description |
---|---|
FontMetrics |
GC.getFontMetrics()
Returns a FontMetrics which contains information
about the font currently being used by the receiver
to draw and measure text.
|
FontMetrics |
TextLayout.getLineMetrics(int lineIndex)
Returns the font metrics for the specified line index.
|
static FontMetrics |
FontMetrics.win32_new(org.eclipse.swt.internal.win32.TEXTMETRIC handle)
Invokes platform specific functionality to allocate a new font metrics.
|
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.