Class ShadingColorHighlighter
java.lang.Object
org.jdesktop.swingx.decorator.AbstractHighlighter
org.jdesktop.swingx.decorator.ColorHighlighter
org.jdesktop.swingx.decorator.ShadingColorHighlighter
- All Implemented Interfaces:
Highlighter
Experimental replacement of HierarchicalColumnHighligher.
Darkens the component's background.
-
Field Summary
Fields inherited from class AbstractHighlighter
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a Highlighter with null colors using the default HighlightPredicate.ShadingColorHighlighter(HighlightPredicate predicate) Instantiates a Highlighter with null colors using the specified HighlightPredicate. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyBackground(Component renderer, ComponentAdapter adapter) Applies a suitable background for the renderer component within the specified adapter.protected ColorcomputeBackgroundSeed(Color seed) Methods inherited from class ColorHighlighter
applyForeground, doHighlight, getBackground, getForeground, getSelectedBackground, getSelectedForeground, setBackground, setForeground, setSelectedBackground, setSelectedForegroundMethods inherited from class AbstractHighlighter
addChangeListener, areEqual, canHighlight, fireStateChanged, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicate
-
Constructor Details
-
ShadingColorHighlighter
public ShadingColorHighlighter()Instantiates a Highlighter with null colors using the default HighlightPredicate. -
ShadingColorHighlighter
Instantiates a Highlighter with null colors using the specified HighlightPredicate.- Parameters:
predicate- the HighlightPredicate to use.
-
-
Method Details
-
applyBackground
Applies a suitable background for the renderer component within the specified adapter.This implementation applies its a darkened background to an unselected adapter. Does nothing for selected cells.
- Overrides:
applyBackgroundin classColorHighlighter- Parameters:
renderer- the cell renderer component that is to be decoratedadapter- the ComponentAdapter for this decorate operation
-
computeBackgroundSeed
-