Package 

Class LimitedDoubleProperty


  • 
    public class LimitedDoubleProperty
    extends Property<Double>
                        

    A limited DoubleProperty to a value range. Value will be checked to be in range lowerBoundInclusive to upperBoundInclusive.

    Therefore upperBoundInclusive must be greater or equal to lowerBoundInclusive. The Range is constant and cannot be altered after object creation.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Double value
    • Method Summary

      Modifier and Type Method Description
      Double getValue()
      Unit setValue(Double value)
      • Methods inherited from class tools.aqua.bgw.observable.properties.Property

        notifyUnchanged
      • Methods inherited from class tools.aqua.bgw.observable.properties.ReadonlyProperty

        addListener, addListenerAndInvoke, clearListeners, removeListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LimitedDoubleProperty

        LimitedDoubleProperty(Number lowerBoundInclusive, Number upperBoundInclusive, Number initialValue)
        Creates a LimitedDoubleProperty with given bounds and initial value.
        Parameters:
        lowerBoundInclusive - Lower bound inclusive.
        upperBoundInclusive - Upper bound inclusive.
        initialValue - Initial Value.