org.jvnet.substance.painter
Class DecayControlBackgroundComposite

java.lang.Object
  extended by org.jvnet.substance.painter.ControlBackgroundComposite
      extended by org.jvnet.substance.painter.DecayControlBackgroundComposite

public class DecayControlBackgroundComposite
extends ControlBackgroundComposite

Decay translucency ControlBackgroundComposite. The component is painted translucent, the translucency is computed based on the distance to the closest active sibling. Currently this composite is relevant only for JTabbedPanes.

Author:
Kirill Grouchnikov

Constructor Summary
DecayControlBackgroundComposite()
           
 
Method Summary
 java.awt.Composite getBackgroundComposite(java.awt.Component component, java.awt.Container container, int componentIndex, boolean isPaintedActive)
          Returns the background composite for the specified component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecayControlBackgroundComposite

public DecayControlBackgroundComposite()
Method Detail

getBackgroundComposite

public java.awt.Composite getBackgroundComposite(java.awt.Component component,
                                                 java.awt.Container container,
                                                 int componentIndex,
                                                 boolean isPaintedActive)
Description copied from class: ControlBackgroundComposite
Returns the background composite for the specified component.

Specified by:
getBackgroundComposite in class ControlBackgroundComposite
Parameters:
component - Component.
container - Container of the component.
componentIndex - Index of the component in its container.
isPaintedActive - Indication whether the component is in active visual state.
Returns:
Background composite for the specified component.