Class BoldStylerProvider
- java.lang.Object
-
- org.eclipse.jface.text.contentassist.BoldStylerProvider
-
@Deprecated public final class BoldStylerProvider extends Object
Deprecated.useBoldStylerProviderdirectlyProvidesStyledString.Stylerthat applies bold style on the given font.- Since:
- 3.11
-
-
Constructor Summary
Constructors Constructor Description BoldStylerProvider(Font font)Deprecated.Creates aBoldStylerProviderinstance which uses the givenfont.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddispose()Deprecated.Disposes the bold font created for the styler.FontgetBoldFont()Deprecated.Creates (if not already done) and returns the bold font used by the styler to apply the bold style.StyledString.StylergetBoldStyler()Deprecated.Returns aStyledString.Stylerthat applies bold style to the givenTextStyle's font.FontgetFont()Deprecated.Returns the font used by the styler to create the bold font.
-
-
-
Constructor Detail
-
BoldStylerProvider
public BoldStylerProvider(Font font)
Deprecated.Creates aBoldStylerProviderinstance which uses the givenfont.- Parameters:
font- the font to use for creating the bold font
-
-
Method Detail
-
dispose
public void dispose()
Deprecated.Disposes the bold font created for the styler.
-
getBoldStyler
public StyledString.Styler getBoldStyler()
Deprecated.Returns aStyledString.Stylerthat applies bold style to the givenTextStyle's font.- Returns:
- a bold styler
-
getBoldFont
public Font getBoldFont()
Deprecated.Creates (if not already done) and returns the bold font used by the styler to apply the bold style.Note: The callers must not cache and re-use the returned font outside the current call.
- Returns:
- the bold font used by the styler
-
getFont
public Font getFont()
Deprecated.Returns the font used by the styler to create the bold font.- Returns:
- the font used for creating the bold font
-
-