public final class BoldStylerProvider extends Object
StyledString.Styler
that applies bold style on the given font.Constructor and Description |
---|
BoldStylerProvider(Font font)
Creates a
BoldStylerProvider instance which uses the given font . |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the bold font created for the styler.
|
Font |
getBoldFont()
Creates (if not already done) and returns the bold font used by the styler to apply the bold
style.
|
StyledString.Styler |
getBoldStyler()
Returns a
StyledString.Styler that applies bold style to the given TextStyle 's font. |
Font |
getFont()
Returns the font used by the styler to create the bold font.
|
public BoldStylerProvider(Font font)
BoldStylerProvider
instance which uses the given font
.font
- the font to use for creating the bold fontpublic void dispose()
public StyledString.Styler getBoldStyler()
StyledString.Styler
that applies bold style to the given TextStyle
's font.public Font getBoldFont()
Note: The callers must not cache and re-use the returned font outside the current call.
public Font getFont()
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.