-
- All Implemented Interfaces:
-
java.io.Serializable,javafx.beans.Observable,javafx.beans.binding.NumberExpression,javafx.beans.property.Property,javafx.beans.property.ReadOnlyProperty,javafx.beans.value.ObservableDoubleValue,javafx.beans.value.ObservableNumberValue,javafx.beans.value.ObservableValue,javafx.beans.value.WritableDoubleValue,javafx.beans.value.WritableNumberValue,javafx.beans.value.WritableValue
public final class RangedDoubleProperty extends DoublePropertyBase implements Serializable
This DoubleProperty is designed to have a range for the wrapped value and to be serializable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRangedDoubleProperty.Companion
-
Field Summary
Fields Modifier and Type Field Description private DoublelowerBoundprivate DoubleupperBound
-
Constructor Summary
Constructors Constructor Description RangedDoubleProperty(String name, Double initialValue, Double lowerBound, Double upperBound)Based on constructor of DoubleProperty, adds the specified bounds. RangedDoubleProperty(String name, Double initialValue, Double lowerBound)Based on constructor of DoubleProperty, adds the specified bounds. RangedDoubleProperty(String name, Double initialValue)Based on constructor of DoubleProperty, adds the specified bounds. RangedDoubleProperty(String name)Based on constructor of DoubleProperty, adds the specified bounds.
-
Method Summary
Modifier and Type Method Description final DoublegetLowerBound()The lower bound value of the property. final UnitsetLowerBound(Double lowerBound)final DoublegetUpperBound()The upper bound value of the property. final UnitsetUpperBound(Double upperBound)Unitset(Double newValue){@inheritDoc}. UnitsetValue(Number v){@inheritDoc}. VoidgetBean()Getter method for unused field bean. StringgetName()Getter method for name. IntegerhashCode()Booleanequals(Object other)-
Methods inherited from class it.unibo.alchemist.boundary.gui.view.properties.RangedDoubleProperty
addListener, addListener, bind, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, toString, unbind -
Methods inherited from class javafx.beans.property.ReadOnlyDoubleProperty
add, add, add, add, add, divide, divide, divide, divide, divide, doubleValue, floatValue, getValue, intValue, longValue, multiply, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract, subtract -
Methods inherited from class javafx.beans.binding.DoubleExpression
asString, asString, asString, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo -
Methods inherited from class javafx.beans.property.DoublePropertyBase
asObject, bindBidirectional, unbindBidirectional -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RangedDoubleProperty
RangedDoubleProperty(String name, Double initialValue, Double lowerBound, Double upperBound)
Based on constructor of DoubleProperty, adds the specified bounds.- Parameters:
name- the name of this propertyinitialValue- the initial value of the wrapped value, defaults to 0.lowerBound- the lower bound for the wrapped value to be considered acceptable, defaults to -Double.MAX_VALUEupperBound- the upper bound for the wrapped value to be considered acceptable, defaults to Double.MAX_VALUE
-
RangedDoubleProperty
RangedDoubleProperty(String name, Double initialValue, Double lowerBound)
Based on constructor of DoubleProperty, adds the specified bounds.- Parameters:
name- the name of this propertyinitialValue- the initial value of the wrapped value, defaults to 0.lowerBound- the lower bound for the wrapped value to be considered acceptable, defaults to -Double.MAX_VALUE
-
RangedDoubleProperty
RangedDoubleProperty(String name, Double initialValue)
Based on constructor of DoubleProperty, adds the specified bounds.- Parameters:
name- the name of this propertyinitialValue- the initial value of the wrapped value, defaults to 0.
-
RangedDoubleProperty
RangedDoubleProperty(String name)
Based on constructor of DoubleProperty, adds the specified bounds.- Parameters:
name- the name of this property
-
-
Method Detail
-
getLowerBound
final Double getLowerBound()
The lower bound value of the property.
-
setLowerBound
final Unit setLowerBound(Double lowerBound)
-
getUpperBound
final Double getUpperBound()
The upper bound value of the property.
-
setUpperBound
final Unit setUpperBound(Double upperBound)
-
-
-
-