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, setSelectedForegroundaddChangeListener, areEqual, canHighlight, fireStateChanged, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicatepublic 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 ColorHighlighterrenderer - the cell renderer component that is to be decoratedadapter - the ComponentAdapter for this decorate operationCopyright © 2019. All rights reserved.