Highlighterpublic class ShadingColorHighlighter extends ColorHighlighter
listenerList| Constructor | 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 | Description |
|---|---|---|
protected void |
applyBackground(java.awt.Component renderer,
ComponentAdapter adapter) |
Applies a suitable background for the renderer component within the
specified adapter.
|
protected java.awt.Color |
computeBackgroundSeed(java.awt.Color seed) |
addChangeListener, areEqual, canHighlight, fireStateChanged, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicateapplyForeground, doHighlight, getBackground, getForeground, getSelectedBackground, getSelectedForeground, setBackground, setForeground, setSelectedBackground, setSelectedForegroundpublic ShadingColorHighlighter()
public ShadingColorHighlighter(HighlightPredicate predicate)
predicate - the HighlightPredicate to use.protected void applyBackground(java.awt.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 operationprotected java.awt.Color computeBackgroundSeed(java.awt.Color seed)