Interface IShadowBuilder
interface IShadowBuilder
Extends com.amazon.apmf.IStandard
IShadowBuilder interface helps in constructing a Shadow with specific properties.
The IShadowBuilder interface assists in constructing a Shadow object
with customized properties such as opacity, radius, color, and offset.
Methods
opacity()
Sets the opacity of the shadow effect. This method sets the opacity of the shadow effect. Opacity can be in the range 0.0 to 1.0, where 0.0 represents totally transparent and 1.0 represents totally opaque. In case of incorrect opacity passed, the opacity will be clamped to defined range i.e. if value < 0.0, then opacity will be set to 0.0 and if value is > 1.0, then opacity will be set to 1.0. Default shadow opacity is 1.0.voidopacity(floatopacity)
Parameters
opacity
float — Required
A float value representing the opacity of the shadow (0.0 to 1.0).
radius()
Sets the radius of the shadow effect. This method sets the radius of the shadow effect. Default shadow radius is 0.0.voidradius(floatradius)
Parameters
radius
float — Required
A float value representing the radius of the shadow.
color()
Sets the color of the shadow effect. This method sets the color of the shadow effect. Default shadow color is Color::Transparent.voidcolor(Color*color)
Parameters
color
Color* — Required
The Color struct representing the color of the shadow.
offset()
Sets the offset of the shadow effect. This method sets the offset of the shadow effect. Default shadow offset is {0.0, 0.0}voidoffset(Pointoffset)
Parameters
offset
Point — Required
The Point object representing the offset of the shadow.
build()
Builds and returns the constructed Shadow object. This method constructs and returns the IShadow object using the configured properties.IShadow*build()
Returns
IShadow*
The IShadow object with the specified properties.

