Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: FxObj
Wraps JavaFX DropShadow, an effect that renders a shadow beneath a node, with configurable color, blur radius, X and Y offset, and spread. The radius controls how soft the shadow edges are, the offset shifts the shadow position relative to the node, and spread controls how much of the radius is filled with solid color before blurring. Apply it to any node via the node's setEffect() method.
DropShadow ()
Creates a new DropShadow effect with default settings.
setRadius (double R)
Sets the blur radius of the shadow, controlling how soft the shadow edges appear.
R is a double with the radius in pixels; larger values produce softer edges.this objectsetOffsetX (double X)
Sets the horizontal offset of the shadow relative to the source node.
X is a double with the X offset in pixels; positive shifts the shadow right.this objectsetOffsetY (double Y)
Sets the vertical offset of the shadow relative to the source node.
Y is a double with the Y offset in pixels; positive shifts the shadow down.this objectsetColor (object ColorObj)
Sets the color of the shadow.
ColorObj is a Color object specifying the shadow color.this objectsetSpread (double S)
Sets the spread of the shadow, controlling how much of the radius is filled with solid color.
S is a double in the range 0.0 to 1.0; higher values produce a harder shadow edge.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.