|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.tooltip.shadows.DropShadow
public abstract class DropShadow
Drop shadow is a shadow style which does not have perspective effect. It casts the shadow to a parallel plain.
Field Summary | |
---|---|
protected double |
_scale
Scale of the shadow, relative to the balloon size. |
protected int |
_xOffset
The shadow shearness on the x-axis direction. |
protected int |
_yOffset
The shadow shearness on the y-axis direction. |
Constructor Summary | |
---|---|
DropShadow()
Creates a new instance of LeftBottomShadow |
Method Summary | |
---|---|
BufferedImage |
createShadow(BufferedImage image,
BalloonTip balloonTip)
Creating the shadow image. |
double |
getScale()
|
Dimension |
getShadowSize(Dimension size)
Get the size of shadow according to the balloon size. |
int |
getXOffset()
|
int |
getYOffset()
|
void |
setScale(double scale)
|
void |
setXOffset(int xOffset)
|
void |
setYOffset(int yOffset)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jidesoft.tooltip.ShadowStyle |
---|
layout |
Field Detail |
---|
protected int _yOffset
protected int _xOffset
protected double _scale
Constructor Detail |
---|
public DropShadow()
Method Detail |
---|
public BufferedImage createShadow(BufferedImage image, BalloonTip balloonTip)
createShadow
in interface ShadowStyle
image
- the background image of the balloon tipballoonTip
- the balloon tip.
public Dimension getShadowSize(Dimension size)
ShadowStyle
getShadowSize
in interface ShadowStyle
size
- the balloon size.
public int getYOffset()
public void setYOffset(int yOffset)
public int getXOffset()
public void setXOffset(int xOffset)
public double getScale()
public void setScale(double scale)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |