public class ShadingColorHighlighter extends ColorHighlighter
listenerList
Constructor and Description |
---|
ShadingColorHighlighter()
Instantiates a Highlighter with null colors using the default
HighlightPredicate.
|
ShadingColorHighlighter(HighlightPredicate predicate)
Instantiates a Highlighter with null colors using the specified
HighlightPredicate.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyBackground(Component renderer,
ComponentAdapter adapter)
Applies a suitable background for the renderer component within the
specified adapter.
|
protected Color |
computeBackgroundSeed(Color seed) |
applyForeground, doHighlight, getBackground, getForeground, getSelectedBackground, getSelectedForeground, setBackground, setForeground, setSelectedBackground, setSelectedForeground
addChangeListener, areEqual, canHighlight, fireStateChanged, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicate
public ShadingColorHighlighter()
public ShadingColorHighlighter(HighlightPredicate predicate)
predicate
- the HighlightPredicate to use.protected void applyBackground(Component renderer, ComponentAdapter adapter)
This implementation applies its a darkened background to an unselected adapter. Does nothing for selected cells.
applyBackground
in class ColorHighlighter
renderer
- the cell renderer component that is to be decoratedadapter
- the ComponentAdapter for this decorate operationprotected Color computeBackgroundSeed(Color seed)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses