TransitionMediator encapsulates the interactions between a TransitionTimer and its target.
| Modifier and Type | Field and Description |
|---|---|
| private TransitionTimer. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public abstract StyleableProperty | Returns: the styleable propertyReturns the styleable property targeted by the transition. |
| public abstract void | |
| public abstract void | onUpdate(double
the progress of the transition along the output progress axis,
can be less than 0 or larger than 1 progress)Derived classes should implement this method to compute a new intermediate value
based on the current progress, and update the |
| public final void | run(TransitionDefinition
the transition definition definition, String the name of the targeted CSS property targetPropertyName, long the current time in nanoseconds nanoNow)Starts the transition timer with the specified transition definition. |
| public abstract boolean | Returns: true if the reversing-adjusted start value was updated, false otherwisethe mediator of the existing transition existingMediator)Derived classes must implement the following protocol:
|
| cancellationToken | back to summary |
|---|---|
| private TransitionTimer. | |
| TransitionMediator | back to summary |
|---|---|
| public TransitionMediator() | |
| cancel | back to summary |
|---|---|
| public final void cancel() Cancels the transition timer if it is currently running. | |
| getStyleableProperty | back to summary |
|---|---|
| public abstract StyleableProperty Returns the styleable property targeted by the transition.
| |
| onStop | back to summary |
|---|---|
| public abstract void onStop() Occurs when the timer has stopped and the mediator should be discarded. Derived classes should implement this method to clear any references to this mediator. | |
| onUpdate | back to summary |
|---|---|
| public abstract void onUpdate(double progress) Derived classes should implement this method to compute a new intermediate value
based on the current progress, and update the
| |
| run | back to summary |
|---|---|
| public final void run(TransitionDefinition definition, String targetPropertyName, long nanoNow) Starts the transition timer with the specified transition definition.
| |
| updateReversingAdjustedStartValue | back to summary |
|---|---|
| public abstract boolean updateReversingAdjustedStartValue(TransitionMediator existingMediator) Derived classes must implement the following protocol:
| |