T - the type of object for which colors are providedpublic interface ColorProvider<T>
ColorProvider interface defines the contract for an object
 that can provide foreground and background colors for a given object an key.| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
DISABLED  | 
static java.lang.String | 
ENABLED  | 
static java.lang.String | 
MOUSEOVER  | 
static java.lang.String | 
SELECTED  | 
| Modifier and Type | Method and Description | 
|---|---|
java.awt.Color | 
backgroundFor(T obj,
             java.lang.String key)
Get the background color for the given object and key. 
 | 
java.awt.Color | 
foregroundFor(T obj,
             java.lang.String key)
Get the foreground color for the given object and key. 
 | 
static final java.lang.String ENABLED
static final java.lang.String DISABLED
static final java.lang.String SELECTED
static final java.lang.String MOUSEOVER
java.awt.Color backgroundFor(T obj, java.lang.String key)
obj - the objectkey - the keynull if no such background color is availablejava.awt.Color foregroundFor(T obj, java.lang.String key)
obj - the objectkey - the keynull if no such foreground color is available