Package eu.webtoolkit.jwt
Class WShadow
- java.lang.Object
-
- eu.webtoolkit.jwt.WShadow
-
public class WShadow extends java.lang.ObjectA value class that defines a shadow style.- See Also:
WPainter.setShadow(WShadow shadow)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(WShadow other)Indicates whether some other object is "equal to" this one.doublegetBlur()Returns the blur.WColorgetColor()Returns the shadow color.doublegetOffsetX()Returns the shadow X offset.doublegetOffsetY()Returns the shadow Y offset.booleanisNone()Returns whether the shadow effect is nihil.voidsetBlur(double blur)Sets the blur.voidsetColor(WColor color)Changes the shadow color.voidsetOffsets(double dx, double dy)Sets the shadow offset.
-
-
-
Constructor Detail
-
WShadow
public WShadow()
Default constructor.Constructs a disabled shadow effect (offsetX = offsetY = blur = 0)
-
WShadow
public WShadow(double dx, double dy, WColor color, double blur)Constructs a shadow with given offset and color.
-
-
Method Detail
-
equals
public boolean equals(WShadow other)
Indicates whether some other object is "equal to" this one.Returns
trueif the shadows are exactly the same.
-
isNone
public boolean isNone()
Returns whether the shadow effect is nihil.
-
setOffsets
public void setOffsets(double dx, double dy)Sets the shadow offset.
-
getOffsetX
public double getOffsetX()
Returns the shadow X offset.- See Also:
setOffsets(double dx, double dy)
-
getOffsetY
public double getOffsetY()
Returns the shadow Y offset.- See Also:
setOffsets(double dx, double dy)
-
setColor
public void setColor(WColor color)
Changes the shadow color.- See Also:
getColor()
-
getColor
public WColor getColor()
Returns the shadow color.- See Also:
setColor(WColor color)
-
setBlur
public void setBlur(double blur)
Sets the blur.- See Also:
getBlur()
-
getBlur
public double getBlur()
Returns the blur.- See Also:
setBlur(double blur)
-
-