Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Reflection

[12:7] extends: FxObj

Wraps JavaFX Reflection, an effect that renders a mirror reflection of a node below it, fading from a top opacity to a bottom opacity. The fraction property controls how much of the node height appears in the reflection, and topOffset shifts the reflection vertically away from the node. Apply it to any node via the node's setEffect() method.

Methods

  • Reflection ()

    Creates a new Reflection effect with default settings.

  • setFraction (double F)

    Sets the fraction of the node's height that is shown in the reflection.

    • @p F is a double in the range 0.0 to 1.0; 1.0 reflects the full node height.
    • @r this object
  • setTopOffset (double O)

    Sets the vertical gap between the bottom of the node and the top of its reflection.

    • @p O is a double with the offset in pixels; positive values push the reflection down.
    • @r this object
  • setTopOpacity (double O)

    Sets the opacity at the top edge of the reflection.

    • @p O is a double in the range 0.0 (transparent) to 1.0 (fully opaque).
    • @r this object
  • setBottomOpacity (double O)

    Sets the opacity at the bottom edge of the reflection.

    • @p O is a double in the range 0.0 (transparent) to 1.0 (fully opaque).
    • @r this object