Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: InnerShadow

[11:7] extends: FxObj

Wraps JavaFX InnerShadow, an effect that renders a shadow inside the edges of a node, giving it a recessed or embossed appearance. The radius controls shadow softness, the offset shifts the shadow position, and the color sets the shadow tint. Apply it to any node via the node's setEffect() method.

Methods

  • InnerShadow ()

    Creates a new InnerShadow effect with default settings.

  • setRadius (double R)

    Sets the blur radius of the inner shadow, controlling how soft the shadow edges appear.

    • @p R is a double with the radius in pixels; larger values produce softer inner edges.
    • @r this object
  • setOffsetX (double X)

    Sets the horizontal offset of the inner shadow relative to the node.

    • @p X is a double with the X offset in pixels; positive shifts the shadow right.
    • @r this object
  • setOffsetY (double Y)

    Sets the vertical offset of the inner shadow relative to the node.

    • @p Y is a double with the Y offset in pixels; positive shifts the shadow down.
    • @r this object
  • setColor (object ColorObj)

    Sets the color of the inner shadow.

    • @p ColorObj is a Color object specifying the shadow color.
    • @r this object