swingx
Version 2005-08-19

org.jdesktop.swingx.decorator
Class HierarchicalColumnHighlighter

java.lang.Object
  extended by org.jdesktop.swingx.decorator.Highlighter
      extended by org.jdesktop.swingx.decorator.HierarchicalColumnHighlighter

public class HierarchicalColumnHighlighter
extends Highlighter

HierarchicalColumnHighlighter


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.swingx.decorator.Highlighter
Highlighter.UIHighlighter
 
Field Summary
 
Fields inherited from class org.jdesktop.swingx.decorator.Highlighter
changeEvent, immutable, ledgerBackground, listenerList, notePadBackground
 
Constructor Summary
HierarchicalColumnHighlighter()
           
HierarchicalColumnHighlighter(Color background, Color foreground)
           
 
Method Summary
protected  Color computeBackground(Component component, ComponentAdapter adapter)
          Computes a suitable background for the renderer component within the specified adapter and returns the computed color.
protected  Color computeBackgroundSeed(Color seed)
           
 
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
 

Constructor Detail

HierarchicalColumnHighlighter

public HierarchicalColumnHighlighter()

HierarchicalColumnHighlighter

public HierarchicalColumnHighlighter(Color background,
                                     Color foreground)
Method Detail

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 decorated
adapter - the ComponentAdapter for this decorate operation
Returns:
a suitable background color for the specified component and adapter

computeBackgroundSeed

protected Color computeBackgroundSeed(Color seed)

swingx
Version 2005-08-19