java.lang.Object
javafx.beans.binding.NumberExpressionBase
javafx.beans.binding.FloatExpression
javafx.beans.property.ReadOnlyFloatProperty
- All Implemented Interfaces:
- NumberExpression,- Observable,- ReadOnlyProperty<Number>,- ObservableFloatValue,- ObservableNumberValue,- ObservableValue<Number>
- Direct Known Subclasses:
- FloatProperty,- ReadOnlyFloatPropertyBase
public abstract class ReadOnlyFloatProperty extends FloatExpression implements ReadOnlyProperty<Number>
Superclass for all readonly properties wrapping a 
float.- Since:
- JavaFX 2.0
- See Also:
- ObservableFloatValue,- FloatExpression,- ReadOnlyProperty
- 
Constructor SummaryConstructors Constructor Description ReadOnlyFloatProperty()The constructor ofReadOnlyFloatProperty.
- 
Method SummaryModifier and Type Method Description ReadOnlyObjectProperty<Float>asObject()Creates aReadOnlyObjectPropertythat holds the value of thisReadOnlyFloatProperty.static <T extends Number>
 ReadOnlyFloatPropertyreadOnlyFloatProperty(ReadOnlyProperty<T> property)Returns aReadOnlyFloatPropertythat wraps aReadOnlyProperty.StringtoString()Returns a string representation of thisReadOnlyFloatPropertyobject.Methods declared in class javafx.beans.binding.FloatExpressionadd, add, add, add, divide, divide, divide, divide, floatExpression, floatExpression, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtractMethods declared in class javafx.beans.binding.NumberExpressionBasenumberExpressionMethods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods declared in interface javafx.beans.binding.NumberExpressionadd, asString, asString, asString, divide, 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, multiply, subtractMethods declared in interface javafx.beans.ObservableaddListener, removeListenerMethods declared in interface javafx.beans.value.ObservableFloatValuegetMethods declared in interface javafx.beans.value.ObservableNumberValuedoubleValue, floatValue, intValue, longValueMethods declared in interface javafx.beans.value.ObservableValueaddListener, getValue, removeListenerMethods declared in interface javafx.beans.property.ReadOnlyPropertygetBean, getName
- 
Constructor Details- 
ReadOnlyFloatPropertypublic ReadOnlyFloatProperty()The constructor ofReadOnlyFloatProperty.
 
- 
- 
Method Details- 
toStringReturns a string representation of thisReadOnlyFloatPropertyobject.
- 
readOnlyFloatPropertypublic static <T extends Number> ReadOnlyFloatProperty readOnlyFloatProperty(ReadOnlyProperty<T> property)Returns aReadOnlyFloatPropertythat wraps aReadOnlyProperty. If theReadOnlyPropertyis already aReadOnlyFloatProperty, it will be returned. Otherwise a newReadOnlyFloatPropertyis created that is bound to theReadOnlyProperty. Note: null values will be interpreted as 0f- Type Parameters:
- T- The type of Number to be wrapped
- Parameters:
- property- The source- ReadOnlyProperty
- Returns:
- A ReadOnlyFloatPropertythat wraps theReadOnlyPropertyif necessary
- Throws:
- NullPointerException- if- propertyis- null
- Since:
- JavaFX 8.0
 
- 
asObjectCreates aReadOnlyObjectPropertythat holds the value of thisReadOnlyFloatProperty. If the value of thisReadOnlyFloatPropertychanges, the value of theReadOnlyObjectPropertywill be updated automatically.- Overrides:
- asObjectin class- FloatExpression
- Returns:
- the new ReadOnlyObjectProperty
- Since:
- JavaFX 8.0
 
 
-