Package org.eclipse.jface.viewers
Class StructuredViewer.ColorAndFontCollector
java.lang.Object
org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollector
- Direct Known Subclasses:
StructuredViewer.ColorAndFontCollectorWithProviders
- Enclosing class:
StructuredViewer
The ColorAndFontCollector collects fonts and colors without a
a color or font provider.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance of the receiver with no color and font provider. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyFontsAndColors(TableItem control) Apply the fonts and colors to the control if required.voidapplyFontsAndColors(TreeItem control) Apply the fonts and colors to the control if required.voidclear()Clear all of the results.voidsetBackground(Color background) Set the background color.voidSet the font.voidsetFontsAndColors(Object element) Set the initial fonts and colors for the element from the content providers.voidsetForeground(Color foreground) Set the foreground color.voidSet that decorators were applied.
-
Constructor Details
-
ColorAndFontCollector
public ColorAndFontCollector()Create a new instance of the receiver with no color and font provider.
-
-
Method Details
-
clear
public void clear()Clear all of the results. -
setFontsAndColors
Set the initial fonts and colors for the element from the content providers.- Parameters:
element- Object
-
setUsedDecorators
public void setUsedDecorators()Set that decorators were applied. -
applyFontsAndColors
Apply the fonts and colors to the control if required.- Parameters:
control- control to apply font and color on
-
applyFontsAndColors
Apply the fonts and colors to the control if required.- Parameters:
control- control to apply font and color on
-
setBackground
Set the background color.- Parameters:
background- color to set
-
setFont
Set the font.- Parameters:
font- font to set
-
setForeground
Set the foreground color.- Parameters:
foreground- color to set
-