protected class StructuredViewer.ColorAndFontCollector extends Object
Constructor and Description |
---|
ColorAndFontCollector()
Create a new instance of the receiver with
no color and font provider.
|
Modifier and Type | Method and Description |
---|---|
void |
applyFontsAndColors(TableItem control)
Apply the fonts and colors to the control if
required.
|
void |
applyFontsAndColors(TableTreeItem control)
Apply the fonts and colors to the control if
required.
|
void |
applyFontsAndColors(TreeItem control)
Apply the fonts and colors to the control if
required.
|
void |
clear()
Clear all of the results.
|
void |
setBackground(Color background)
Set the background color.
|
void |
setFont(Font font)
Set the font.
|
void |
setFontsAndColors(Object element)
Set the initial fonts and colors for the element from the
content providers.
|
void |
setForeground(Color foreground)
Set the foreground color.
|
void |
setUsedDecorators()
Set that decorators were applied.
|
public ColorAndFontCollector()
public void clear()
public void setFontsAndColors(Object element)
element
- Objectpublic void setUsedDecorators()
public void applyFontsAndColors(TableItem control)
control
- public void applyFontsAndColors(TreeItem control)
control
- public void applyFontsAndColors(TableTreeItem control)
control
- public void setBackground(Color background)
background
- public void setFont(Font font)
font
- public void setForeground(Color foreground)
foreground
-
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.