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
protected class StructuredViewer.ColorAndFontCollector extends Object
The ColorAndFontCollector collects fonts and colors without a a color or font provider.
-
-
Constructor Summary
Constructors Constructor Description ColorAndFontCollector()Create a new instance of the receiver with no color and font provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyFontsAndColors(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.voidsetFont(Font font)Set 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.voidsetUsedDecorators()Set that decorators were applied.
-
-
-
Method Detail
-
clear
public void clear()
Clear all of the results.
-
setFontsAndColors
public void setFontsAndColors(Object element)
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
public void applyFontsAndColors(TableItem control)
Apply the fonts and colors to the control if required.- Parameters:
control-
-
applyFontsAndColors
public void applyFontsAndColors(TreeItem control)
Apply the fonts and colors to the control if required.- Parameters:
control-
-
setBackground
public void setBackground(Color background)
Set the background color.- Parameters:
background-
-
setFont
public void setFont(Font font)
Set the font.- Parameters:
font-
-
setForeground
public void setForeground(Color foreground)
Set the foreground color.- Parameters:
foreground-
-
-