Modifier and Type | Method and Description |
---|---|
static Font |
Graphics.getFont(FontData data)
Deprecated.
Factory created resources are obsolete and will be removed in a future release. Use
the constructor
Font(Device, FontData) instead. |
static Font |
Graphics.getFont(java.lang.String name,
int height,
int style)
Deprecated.
Factory created resources are obsolete and will be removed in a future release. Use
the constructor
Font(Device, String, int, int) instead. |
Modifier and Type | Method and Description |
---|---|
static float |
Graphics.getAvgCharWidth(Font font)
Deprecated.
Application code should not need to use this method. If you need an average
character width, you can use
GC.stringExtent(String) with a string of your
choice and calculate the average width. |
static int |
Graphics.getCharHeight(Font font)
Deprecated.
Application code should not need to use this method. If you need this information,
you can use
GC.stringExtent(String) with a string of your choice and get
the height of the result. |
static Point |
Graphics.stringExtent(Font font,
java.lang.String string)
Deprecated.
You can use SWT API to measure a string. Create a GC, set the font, and measure the
string using
GC.stringExtent(String) . Don't forget to dispose the GC
afterwards. |
static Point |
Graphics.textExtent(Font font,
java.lang.String string,
int wrapWidth)
Deprecated.
In most cases, you can use SWT API to measure texts. Create a GC, set the font, and
measure the text using
GC.textExtent(String) . Don't forget to dispose the
GC afterwards. |
Modifier and Type | Method and Description |
---|---|
static void |
WidgetLCAUtil.preserveFont(Widget widget,
Font font)
Deprecated.
Preserves the value of the property
font of the specified
widget. |
static void |
WidgetLCAUtil.renderFont(Widget widget,
Font font)
Deprecated.
Determines whether the property
font of the given widget has
changed during the processing of the current request and if so, writes
JavaScript code to the response that updates the client-side font property
of the specified widget. |
static void |
WidgetLCAUtil.renderProperty(Widget widget,
java.lang.String property,
Font[] newValue,
Font[] defaultValue)
Deprecated.
Determines whether the property of the given widget has changed during the processing of the
current request and if so, writes a protocol message to the response that updates the
client-side property of the specified widget.
|
static void |
WidgetLCAUtil.renderProperty(Widget widget,
java.lang.String property,
Font[] newValue,
Font[] defaultValue)
Deprecated.
Determines whether the property of the given widget has changed during the processing of the
current request and if so, writes a protocol message to the response that updates the
client-side property of the specified widget.
|
Modifier and Type | Method and Description |
---|---|
static JsonValue |
JsonMapping.toJson(Font font)
Returns the JSON representation for the given Font.
|
Modifier and Type | Method and Description |
---|---|
T |
Cell.setFont(Font font)
Sets the font for this cell.
|
Modifier and Type | Method and Description |
---|---|
Font |
ControlThemeAdapter.getFont(Control control)
Returns the default font that the specified control will use to paint
textual information when no user-defined font has been set using
Control.setFont(Font) . |
Modifier and Type | Method and Description |
---|---|
Font |
CTabItem.getFont()
Returns the font that the receiver will use to paint textual information.
|
Modifier and Type | Method and Description |
---|---|
void |
CLabel.setFont(Font font) |
void |
CTabFolder.setFont(Font font) |
void |
CTabItem.setFont(Font font)
Sets the font that the receiver will use to paint textual information
for this item to the font specified by the argument, or to the default font
for that kind of control if the argument is null.
|
Modifier and Type | Method and Description |
---|---|
Font |
GC.getFont()
Returns the font currently being used by the receiver
to draw and measure text.
|
Font |
Device.getSystemFont()
Returns a reasonable font for applications to use.
|
Modifier and Type | Method and Description |
---|---|
void |
GC.setFont(Font font)
Sets the font which will be used by the receiver
to draw and measure text to the argument.
|
Modifier and Type | Method and Description |
---|---|
Font |
Control.getFont()
Returns the font that the receiver will use to paint textual information.
|
Font |
TableItem.getFont()
Returns the font that the receiver will use to paint textual information for this item.
|
Font |
TreeItem.getFont()
Returns the font that the receiver will use to paint textual information
for this item.
|
Font |
TableItem.getFont(int index)
Returns the font that the receiver will use to paint textual information
for the specified cell in this item.
|
Font |
TreeItem.getFont(int index)
Returns the font that the receiver will use to paint textual information
for the specified cell in this item.
|
Modifier and Type | Method and Description |
---|---|
void |
Control.setFont(Font font)
Sets the font that the receiver will use to paint textual information
to the font specified by the argument, or to the default font for that
kind of control if the argument is null.
|
void |
DateTime.setFont(Font font) |
void |
ExpandBar.setFont(Font font)
Sets the font that the receiver will use to paint textual information
to the font specified by the argument, or to the default font for that
kind of control if the argument is null.
|
void |
List.setFont(Font font) |
void |
Table.setFont(Font font) |
void |
TableItem.setFont(Font font)
Sets the font that the receiver will use to paint textual information
for this item to the font specified by the argument, or to the default font
for that kind of control if the argument is null.
|
void |
ToolBar.setFont(Font font) |
void |
Tree.setFont(Font font) |
void |
TreeItem.setFont(Font font)
Sets the font that the receiver will use to paint textual information for
this item to the font specified by the argument, or to the default font for
that kind of control if the argument is null.
|
void |
TableItem.setFont(int index,
Font font)
Sets the font that the receiver will use to paint textual information
for the specified cell in this item to the font specified by the
argument, or to the default font for that kind of control if the
argument is null.
|
void |
TreeItem.setFont(int index,
Font font)
Sets the font that the receiver will use to paint textual information for
the specified cell in this item to the font specified by the argument, or
to the default font for that kind of control if the argument is null.
|
Copyright (c) EclipseSource and others 2002, 2014.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0