org.jvnet.substance.painter
Class DefaultControlBackgroundComposite

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

public class DefaultControlBackgroundComposite
extends ControlBackgroundComposite

Default ControlBackgroundComposite - always returns the regular AlphaComposite.SrcOver composite.

Author:
Kirill Grouchnikov

Constructor Summary
DefaultControlBackgroundComposite()
           
 
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

DefaultControlBackgroundComposite

public DefaultControlBackgroundComposite()
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.