JIDE 3.5.15

com.jidesoft.tooltip.composite
Class DefaultShadowComposite

java.lang.Object
  extended by com.jidesoft.tooltip.composite.DefaultShadowComposite
All Implemented Interfaces:
ShadowComposite

public class DefaultShadowComposite
extends Object
implements ShadowComposite

Opaque shadow composite


Constructor Summary
DefaultShadowComposite()
           
 
Method Summary
 int compose(double distance)
          Composing the background image pixel color according to current distance to the edge of balloon outline.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultShadowComposite

public DefaultShadowComposite()
Method Detail

compose

public int compose(double distance)
Description copied from interface: ShadowComposite
Composing the background image pixel color according to current distance to the edge of balloon outline. The outward distance is positive and innerward distance is negative. Compositor should use this distance to determin the light effect and the resulting shadow pixel.

Specified by:
compose in interface ShadowComposite
Parameters:
distance - the distance of the pixel to the outline edge.
Returns:
the resulting pixel value.

JIDE 3.5.15