public final class ComponentFaderFactory
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ComponentFaderFactory.BasicFadePolicy
A policy that by default maintains steady level fade set at the 'fade' amount. 
 | 
static class  | 
ComponentFaderFactory.FadeLayerUI  | 
static interface  | 
ComponentFaderFactory.FadePolicy
Determines how the component is to be faded. 
 | 
static class  | 
ComponentFaderFactory.MouseOverFadePolicy
A policy to fade out a component when the mouse isn't directly over it, or it does have focus. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static javax.swing.JComponent | 
createFadedComponent(javax.swing.JComponent component, ComponentFaderFactory.FadePolicy policy)
Given any JComponent this method will wrap return a faded version. 
 | 
static void | 
main(java.lang.String[] args)
Demonstration method to demonstrate the effect 
 | 
public static javax.swing.JComponent createFadedComponent(javax.swing.JComponent component,
                                          ComponentFaderFactory.FadePolicy policy)
A reference to the original should be kept to change any properties.
Currently fading only works well if the component is placed in front of solid non-gradient backgrounds.
component - the component to fade.policy - how to fade.public static void main(java.lang.String[] args)
args -