org.jdesktop.swingx.decorator
Class ShadingColorHighlighter
java.lang.Object
org.jdesktop.swingx.decorator.AbstractHighlighter
org.jdesktop.swingx.decorator.ColorHighlighter
org.jdesktop.swingx.decorator.ShadingColorHighlighter
- All Implemented Interfaces:
- Highlighter
public class ShadingColorHighlighter
- extends ColorHighlighter
Experimental replacement of HierarchicalColumnHighligher.
Darkens the component's background.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShadingColorHighlighter
public ShadingColorHighlighter(HighlightPredicate predicate)
applyBackground
protected void applyBackground(Component renderer,
ComponentAdapter adapter)
- Description copied from class:
ColorHighlighter
- Applies a suitable background for the renderer component within the
specified adapter.
This implementation applies its background or selectedBackground color
(depending on the adapter's selected state) if != null.
Otherwise it does nothing.
- Overrides:
applyBackground
in class ColorHighlighter
- Parameters:
renderer
- the cell renderer component that is to be decoratedadapter
- the ComponentAdapter for this decorate operation
computeBackgroundSeed
protected Color computeBackgroundSeed(Color seed)