public static class AdapterFactoryLabelProvider.ColorProvider extends AdapterFactoryLabelProvider
AdapterFactoryLabelProvider.ColorProvider, AdapterFactoryLabelProvider.FontAndColorProvider, AdapterFactoryLabelProvider.FontProvider
adapterFactory, defaultBackground, defaultFont, defaultForeground, isFireLabelUpdateNotifications, labelProviderListeners
Constructor and Description |
---|
AdapterFactoryLabelProvider.ColorProvider(AdapterFactory adapterFactory,
Color defaultForeground,
Color defaultBackground)
Construct an instance that wraps the given factory and specifies the given default colors.
|
AdapterFactoryLabelProvider.ColorProvider(AdapterFactory adapterFactory,
Viewer viewer)
Construct an instance that wraps the given factory and uses the colors of the viewer's control.
|
addListener, dispose, fireLabelProviderChanged, getAdapterFactory, getBackground, getBackground, getColorFromObject, getColumnImage, getColumnText, getDefaultBackground, getDefaultFont, getDefaultForeground, getDefaultImage, getFont, getFont, getFontFromObject, getForeground, getForeground, getImage, getImageFromObject, getText, isFireLabelUpdateNotifications, isLabelProperty, notifyChanged, removeListener, setAdapterFactory, setDefaultBackground, setDefaultFont, setDefaultForeground, setFireLabelUpdateNotifications
public AdapterFactoryLabelProvider.ColorProvider(AdapterFactory adapterFactory, Color defaultForeground, Color defaultBackground)
adapterFactory
- an adapter factory that yield adapters that implement the various item label provider interfaces.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.ColorProvider(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 color should be used.