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(Component renderer,
ComponentAdapter adapter) |
Applies a suitable background for the renderer component within the
specified adapter.
|
protected Color |
computeBackgroundSeed(Color seed) |
addChangeListener, areEqual, canHighlight, fireStateChanged, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicateapplyForeground, doHighlight, getBackground, getForeground, getSelectedBackground, getSelectedForeground, isLegacy, setBackground, setForeground, setLegacy, setSelectedBackground, setSelectedForegroundpublic 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 © 2018. All rights reserved.