Package eu.webtoolkit.jwt
Class WShadow
java.lang.Object
eu.webtoolkit.jwt.WShadow
A value class that defines a shadow style.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.doublegetBlur()Returns the blur.getColor()Returns the shadow color.doubleReturns the shadow X offset.doubleReturns the shadow Y offset.booleanisNone()Returns whether the shadow effect is nihil.voidsetBlur(double blur) Sets the blur.voidChanges the shadow color.voidsetOffsets(double dx, double dy) Sets the shadow offset.
-
Constructor Details
-
WShadow
public WShadow()Default constructor.Constructs a disabled shadow effect (offsetX = offsetY = blur = 0)
-
WShadow
Constructs a shadow with given offset and color.
-
-
Method Details
-
equals
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:
-
getOffsetY
public double getOffsetY()Returns the shadow Y offset.- See Also:
-
setColor
Changes the shadow color.- See Also:
-
getColor
Returns the shadow color.- See Also:
-
setBlur
public void setBlur(double blur) Sets the blur.- See Also:
-
getBlur
public double getBlur()Returns the blur.- See Also:
-