Interface TimelineCallback
- All Known Implementing Classes:
EventDispatchThreadTimelineCallbackAdapter,RadianceListUI.CellRepaintCallback,RadianceTabbedPaneUI.TabRepaintCallback,RadianceTableHeaderUI.ColumnHeaderRepaintCallback,RadianceTableUI.CellRepaintCallback,RadianceTreeUI.PathRepaintCallback,SwingRepaintCallback,Timeline.Chain,Timeline.Setter,Timeline.UISetter,TimelineCallbackAdapter
public interface TimelineCallback
Callback for the fade tracker. Is used when the application (some UI
delegate) wishes to execute some code on the fade.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonTimelinePulse(float durationFraction, float timelinePosition) Indicates that the timeline pulse has happened.voidonTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) Indicates that the timeline state has changed.
-
Method Details
-
onTimelineStateChanged
void onTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) Indicates that the timeline state has changed.- Parameters:
oldState- The old timeline state.newState- The new timeline state.durationFraction- The current timeline duration fraction. Is guaranteed to be in 0.0-1.0 range. The rate of change of this value is linear, and the value is proportional toTimeline.BaseBuilder.setDuration(long).timelinePosition- The current timeline position. Is guaranteed to be in 0.0-1.0 range. The rate of change of this value is not necessarily linear and is affected by theTimeline.BaseBuilder.setEase(TimelineEase).
-
onTimelinePulse
void onTimelinePulse(float durationFraction, float timelinePosition) Indicates that the timeline pulse has happened.- Parameters:
durationFraction- The current timeline duration fraction. Is guaranteed to be in 0.0-1.0 range. The rate of change of this value is linear, and the value is proportional toTimeline.BaseBuilder.setDuration(long).timelinePosition- The current timeline position. Is guaranteed to be in 0.0-1.0 range. The rate of change of this value is not necessarily linear and is affected by theTimeline.BaseBuilder.setEase(TimelineEase).
-