|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollector
org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollectorWithProviders
The ColorAndFontCollector is a helper class for viewers that have color and font support ad optionally decorators.
IColorDecorator
,
IFontDecorator
,
IColorProvider
,
IFontProvider
,
IDecoration
Constructor Summary | |
---|---|
StructuredViewer.ColorAndFontCollectorWithProviders(IBaseLabelProvider provider)
Create a new instance of the receiver using the supplied label provider. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StructuredViewer.ColorAndFontCollectorWithProviders(IBaseLabelProvider provider)
provider
- IBaseLabelProviderIColorProvider
,
IFontProvider
Method Detail |
public void setFontsAndColors(Object element)
org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollector
element
- Objectpublic void applyFontsAndColors(TableItem control)
control
- public void applyFontsAndColors(TreeItem control)
org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollector
control
- public void applyFontsAndColors(TableTreeItem control)
org.eclipse.jface.viewers.StructuredViewer.ColorAndFontCollector
control
- public void clear()
public void setUsedDecorators()
public void setBackground(Color background)
background
- public void setFont(Font font)
font
- public void setForeground(Color foreground)
foreground
-
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.