Class Timeline.Chain
java.lang.Object
org.pushingpixels.radiance.animation.api.Timeline.Chain
- All Implemented Interfaces:
TimelineCallback
- Enclosing class:
Timeline
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCallback(TimelineCallback callback) private voidhandlePulse(TimelineCallback callback, float durationFraction, float timelinePosition) private voidhandleStateChange(TimelineCallback callback, Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) voidonTimelinePulse(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.voidremoveCallback(TimelineCallback callback)
-
Field Details
-
setterCallback
-
callbacks
-
-
Constructor Details
-
Chain
-
-
Method Details
-
addCallback
-
removeCallback
-
handleStateChange
private void handleStateChange(TimelineCallback callback, Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) -
onTimelineStateChanged
public void onTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) Description copied from interface:TimelineCallbackIndicates that the timeline state has changed.- Specified by:
onTimelineStateChangedin interfaceTimelineCallback- 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).
-
handlePulse
-
onTimelinePulse
public void onTimelinePulse(float durationFraction, float timelinePosition) Description copied from interface:TimelineCallbackIndicates that the timeline pulse has happened.- Specified by:
onTimelinePulsein interfaceTimelineCallback- 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).
-