TimelineCallbackEventDispatchThreadTimelineCallbackAdapter, SwingRepaintCallbackpublic class TimelineCallbackAdapter extends java.lang.Object implements TimelineCallback
TimelineCallback that does nothing.| Constructor | Description |
|---|---|
TimelineCallbackAdapter() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
onTimelinePulse(float durationFraction,
float timelinePosition) |
Indicates that the timeline pulse has happened.
|
void |
onTimelineStateChanged(Timeline.TimelineState oldState,
Timeline.TimelineState newState,
float durationFraction,
float timelinePosition) |
Indicates that the timeline state has changed.
|
public void onTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition)
TimelineCallbackonTimelineStateChanged in interface TimelineCallbackoldState - 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 to
Timeline.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 the
Timeline.BaseBuilder.setEase(TimelineEase).public void onTimelinePulse(float durationFraction,
float timelinePosition)
TimelineCallbackonTimelinePulse in interface TimelineCallbackdurationFraction - 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 to
Timeline.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 the
Timeline.BaseBuilder.setEase(TimelineEase).