Class AnimatedVal<T>
java.lang.Object
org.reactfx.ObservableBase<Consumer<? super T>, T>
org.reactfx.value.ValBase<T>
org.reactfx.value.AnimatedVal<T>
- All Implemented Interfaces:
javafx.beans.Observable, javafx.beans.value.ObservableValue<T>, Observable<Consumer<? super T>>, ProperObservable<Consumer<? super T>, T>, ProperVal<T>, Val<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiFunction<? super T, ? super T, Duration> private doubleprivate final Interpolator<T> private Tprivate final javafx.beans.value.ObservableValue<T> private final AnimatedVal<T>.FractionTransition -
Constructor Summary
ConstructorsConstructorDescriptionAnimatedVal(javafx.beans.value.ObservableValue<T> src, BiFunction<? super T, ? super T, Duration> duration, Interpolator<T> interpolator) -
Method Summary
Modifier and TypeMethodDescriptionprotected Tprotected Subscriptionconnect()Implementation of this method should start observing inputs.Methods inherited from class ValBase
getValue, invalidate, newObserver, observeInputsMethods inherited from class ObservableBase
addObserver, enqueueNotifications, equals, forEachObserver, getObserverCount, hashCode, isObservingInputs, notifyObservers, notifyObservers, observe, removeObserver, toStringMethods inherited from interface Observable
addObserver, observe, removeObserverMethods inherited from interface ProperObservable
defaultEquals, defaultHashCode, defaultToString, notifyObserversMethods inherited from interface ProperVal
defaultNotificationAccumulatorMethods inherited from interface Val
addInvalidationObserver, addListener, addListener, animate, animate, asList, asVar, changes, conditionOn, conditionOnShowing, filter, flatMap, getOpt, getOrElse, getOrSupply, getOrThrow, ifPresent, invalidations, isEmpty, isPresent, map, mapDynamic, observeChanges, observeInvalidations, orElse, orElseConst, pin, removeInvalidationObserver, removeListener, removeListener, selectVar, selectVar, suspendable, values
-
Field Details
-
src
-
duration
-
interpolator
-
transition
-
fraction
private double fraction -
oldValue
-
-
Constructor Details
-
AnimatedVal
AnimatedVal(javafx.beans.value.ObservableValue<T> src, BiFunction<? super T, ? super T, Duration> duration, Interpolator<T> interpolator)
-
-
Method Details
-
connect
Description copied from class:ValBaseImplementation of this method should start observing inputs. If the value of this Val may change as a result of input change, the corresponding input observer should callValBase.invalidate()to notify observers of this Val. By the time of calling ValBase.invalidate(), the input observer must have already updated any internal state of this Val, so that a subsequent call toValBase.computeValue()returns the current value of this Val. -
computeValue
- Specified by:
computeValuein classValBase<T>
-