Class SubstanceTabbedPaneUI.TabRepaintCallback
java.lang.Object
org.pushingpixels.trident.callback.TimelineCallbackAdapter
org.pushingpixels.trident.callback.UIThreadTimelineCallbackAdapter
org.pushingpixels.substance.internal.ui.SubstanceTabbedPaneUI.TabRepaintCallback
- All Implemented Interfaces:
org.pushingpixels.trident.callback.TimelineCallback
- Enclosing class:
- SubstanceTabbedPaneUI
protected class SubstanceTabbedPaneUI.TabRepaintCallback
extends org.pushingpixels.trident.callback.UIThreadTimelineCallbackAdapter
Implementation of the fade tracker callback that repaints a single tab.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JTabbedPaneThe associated tabbed pane.protected intThe associated tab index. -
Constructor Summary
ConstructorsConstructorDescriptionTabRepaintCallback(JTabbedPane tabPane, int tabIndex) Creates new tab repaint callback. -
Method Summary
Modifier and TypeMethodDescriptionvoidonTimelinePulse(float durationFraction, float timelinePosition) voidonTimelineStateChanged(org.pushingpixels.trident.Timeline.TimelineState oldState, org.pushingpixels.trident.Timeline.TimelineState newState, float durationFraction, float timelinePosition) protected voidRepaints the relevant tab.
-
Field Details
-
tabbedPane
The associated tabbed pane. -
tabIndex
protected int tabIndexThe associated tab index.
-
-
Constructor Details
-
TabRepaintCallback
Creates new tab repaint callback.- Parameters:
tabPane- The associated tabbed pane.tabIndex- The associated tab index.
-
-
Method Details
-
onTimelinePulse
public void onTimelinePulse(float durationFraction, float timelinePosition) - Specified by:
onTimelinePulsein interfaceorg.pushingpixels.trident.callback.TimelineCallback- Overrides:
onTimelinePulsein classorg.pushingpixels.trident.callback.TimelineCallbackAdapter
-
onTimelineStateChanged
public void onTimelineStateChanged(org.pushingpixels.trident.Timeline.TimelineState oldState, org.pushingpixels.trident.Timeline.TimelineState newState, float durationFraction, float timelinePosition) - Specified by:
onTimelineStateChangedin interfaceorg.pushingpixels.trident.callback.TimelineCallback- Overrides:
onTimelineStateChangedin classorg.pushingpixels.trident.callback.TimelineCallbackAdapter
-
repaintTab
protected void repaintTab()Repaints the relevant tab.
-