org.jvnet.substance.painter
Class ControlBackgroundComposite

java.lang.Object
  extended by org.jvnet.substance.painter.ControlBackgroundComposite
Direct Known Subclasses:
AlphaControlBackgroundComposite, DecayControlBackgroundComposite, DefaultControlBackgroundComposite

public abstract class ControlBackgroundComposite
extends java.lang.Object

Background composite for a control. Can be set as a client property on a single control or as a global property on UIManager with the SubstanceLookAndFeel.BACKGROUND_COMPOSITE property.

Author:
Kirill Grouchnikov

Constructor Summary
ControlBackgroundComposite()
           
 
Method Summary
abstract  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

ControlBackgroundComposite

public ControlBackgroundComposite()
Method Detail

getBackgroundComposite

public abstract java.awt.Composite getBackgroundComposite(java.awt.Component component,
                                                          java.awt.Container container,
                                                          int componentIndex,
                                                          boolean isPaintedActive)
Returns the background composite for the specified component.

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.