Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: FloatProperty

[17:7] extends: NumberProperty

Wraps JavaFX's FloatProperty backed by SimpleFloatProperty. Holds a float value. Shared Property + NumberProperty surface (bind / listeners / isBound / asString / etc.) is inherited. Aussom double values are converted to Java float on dispatch; caller should be aware of precision loss for values outside the float range.

Methods

  • FloatProperty (double Value = 0.0)

    Creates a new FloatProperty with the given initial value (defaults to 0.0).

    • @p Value is the initial float value.
  • adopt (object Ajo)

    Wraps an existing FloatProperty AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a javafx FloatProperty.
    • @r A new FloatProperty wrapper.
  • get ()

    Returns the current float value as an Aussom double.

  • set (double Value)

    Sets the float value. Aussom double is boxed to java.lang.Float because invoke() can't dispatch to a primitive float overload from an Aussom Double directly.

    • @p Value is the new float.
    • @r this object
  • setValue (double Value)

    Sets the value via the boxed Number API. Aussom double is boxed to java.lang.Float before dispatch.

    • @p Value is the new float.
    • @r this object