Class RadianceTabbedPaneUI.TabRepaintCallback
java.lang.Object
org.pushingpixels.radiance.animation.api.callback.TimelineCallbackAdapter
org.pushingpixels.radiance.animation.api.swing.EventDispatchThreadTimelineCallbackAdapter
org.pushingpixels.radiance.theming.internal.ui.RadianceTabbedPaneUI.TabRepaintCallback
- All Implemented Interfaces:
TimelineCallback
- Enclosing class:
RadianceTabbedPaneUI
protected class RadianceTabbedPaneUI.TabRepaintCallback
extends EventDispatchThreadTimelineCallbackAdapter
Implementation of the fade tracker callback that repaints a single tab.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.protected void
Repaints the relevant tab.
-
Field Details
-
tabIndex
protected int tabIndexThe associated tab index.
-
-
Constructor Details
-
TabRepaintCallback
public TabRepaintCallback(int tabIndex) Creates new tab repaint callback.- Parameters:
tabIndex
- The associated tab index.
-
-
Method Details
-
onTimelinePulse
public void onTimelinePulse(float durationFraction, float timelinePosition) Description copied from interface:TimelineCallback
Indicates that the timeline pulse has happened.- Specified by:
onTimelinePulse
in interfaceTimelineCallback
- Overrides:
onTimelinePulse
in classTimelineCallbackAdapter
- 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)
.
-
onTimelineStateChanged
public void onTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) Description copied from interface:TimelineCallback
Indicates that the timeline state has changed.- Specified by:
onTimelineStateChanged
in interfaceTimelineCallback
- Overrides:
onTimelineStateChanged
in classTimelineCallbackAdapter
- 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)
.
-
repaintTab
protected void repaintTab()Repaints the relevant tab.
-