org.jdesktop.swingx.decorator
Class HierarchicalColumnHighlighter
java.lang.Object
org.jdesktop.swingx.decorator.Highlighter
org.jdesktop.swingx.decorator.HierarchicalColumnHighlighter
public class HierarchicalColumnHighlighter
- extends Highlighter
HierarchicalColumnHighlighter
Methods inherited from class org.jdesktop.swingx.decorator.Highlighter |
addChangeListener, applyBackground, applyForeground, computeForeground, computeSelectedBackground, computeSelectedBackground, computeSelectedForeground, computeSelectedForeground, computeUnselectedBackground, computeUnselectedForeground, doHighlight, fireStateChanged, getBackground, getChangeListeners, getForeground, getSelectedBackground, getSelectedForeground, highlight, isImmutable, removeChangeListener, setBackground, setForeground, setSelectedBackground, setSelectedForeground |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HierarchicalColumnHighlighter
public HierarchicalColumnHighlighter()
HierarchicalColumnHighlighter
public HierarchicalColumnHighlighter(Color background,
Color foreground)
computeBackground
protected Color computeBackground(Component component,
ComponentAdapter adapter)
- Description copied from class:
Highlighter
Computes a suitable background for the renderer component within the
specified adapter and returns the computed color.
In this implementation the returned color depends
on isSelected
: it will
return computSelected/-UnselectedBackground, respectively.
- Overrides:
computeBackground
in class Highlighter
- Parameters:
component
- the cell renderer component that is to be decoratedadapter
- the ComponentAdapter
for this decorate operation
- Returns:
- a suitable background color for the specified component and adapter
computeBackgroundSeed
protected Color computeBackgroundSeed(Color seed)