JIDE 3.5.15

com.jidesoft.tooltip
Interface ShadowStyle

All Known Implementing Classes:
DropShadow, LeftBottomBackward, LeftBottomDrop, LeftBottomForward, LeftTopDrop, PerspectiveShadow, RightBottomBackward, RightBottomDrop, RightBottomForward, RightTopDrop

public interface ShadowStyle

Shadow style defines different shadow casting style, including casting direction, whether it should be a perspective casting and the position relative the balloon popup.


Method Summary
 BufferedImage createShadow(BufferedImage image, BalloonTip tip)
          Create shadow image using the background image of the balloon tip.
 Dimension getShadowSize(Dimension size)
          Get the size of shadow according to the balloon size.
 void layout(Rectangle balloonBounds, Rectangle shadowBounds)
          Layout the balloon and shadow according to the style.
 

Method Detail

createShadow

BufferedImage createShadow(BufferedImage image,
                           BalloonTip tip)
Create shadow image using the background image of the balloon tip.

Parameters:
image - the background image of the balloon tip
tip - the balloon tip.
Returns:
the shadow image of the balloon tip.

getShadowSize

Dimension getShadowSize(Dimension size)
Get the size of shadow according to the balloon size.

Parameters:
size - the balloon size.
Returns:
the shadow size

layout

void layout(Rectangle balloonBounds,
            Rectangle shadowBounds)
Layout the balloon and shadow according to the style.

Parameters:
balloonBounds - the bounds for the balloon component.
shadowBounds - the bounds for the shadow component.

JIDE 3.5.15