com.jidesoft.tooltip.composite
Class DefaultShadowComposite
java.lang.Object
com.jidesoft.tooltip.composite.DefaultShadowComposite
- All Implemented Interfaces:
- ShadowComposite
public class DefaultShadowComposite
- extends Object
- implements ShadowComposite
Opaque shadow composite
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 |
DefaultShadowComposite
public DefaultShadowComposite()
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.