public static class AdapterFactoryLabelProvider.StyledLabelProvider extends AdapterFactoryLabelProvider
ExtendedColorRegistry and ExtendedFontRegistry may be queried to build StyledString.
Therefore, constructors need to get default font, foreground color and background color. As such, it also
implements IFontProvider and IColorProvider.
AdapterFactoryLabelProvider.ColorProvider, AdapterFactoryLabelProvider.ConvertingStyler, AdapterFactoryLabelProvider.FontAndColorProvider, AdapterFactoryLabelProvider.FontProvider, AdapterFactoryLabelProvider.StyledLabelProvideradapterFactory, defaultBackground, defaultFont, defaultForeground, isFireLabelUpdateNotifications, labelProviderListeners| Constructor and Description |
|---|
AdapterFactoryLabelProvider.StyledLabelProvider(AdapterFactory adapterFactory,
Font defaultFont,
Color defaultForeground,
Color defaultBackground)
Construct an instance that wraps the given factory and specifies the given default font and colors.
|
AdapterFactoryLabelProvider.StyledLabelProvider(AdapterFactory adapterFactory,
Viewer viewer)
Construct an instance that wraps the given factory and uses the font and colors of the viewer's control.
|
addListener, createStyler, dispose, fireLabelProviderChanged, getAdapterFactory, getBackground, getBackground, getColorFromObject, getColumnImage, getColumnText, getDefaultBackground, getDefaultFont, getDefaultForeground, getDefaultImage, getFont, getFont, getFontFromObject, getForeground, getForeground, getImage, getImageFromObject, getStyledStringFromObject, getStyledText, getText, isFireLabelUpdateNotifications, isLabelProperty, notifyChanged, removeListener, setAdapterFactory, setDefaultBackground, setDefaultFont, setDefaultForeground, setFireLabelUpdateNotifications, toJFaceStyledStringpublic AdapterFactoryLabelProvider.StyledLabelProvider(AdapterFactory adapterFactory, Font defaultFont, Color defaultForeground, Color defaultBackground)
adapterFactory - an adapter factory that yield adapters that implement the various item label provider interfaces.defaultFont - the font that will be used when no font is specified.defaultForeground - the foreground color that will be used when no foreground color is specified.defaultBackground - the background color that will be used when no background color is specified.public AdapterFactoryLabelProvider.StyledLabelProvider(AdapterFactory adapterFactory, Viewer viewer)
adapterFactory - an adapter factory that yield adapters that implement the various item label provider interfaces.viewer - the viewer for which the control's font and color should be used.