org.pushingpixels.substance.internal.ui
Class SubstanceTabbedPaneUI.TabRepaintCallback

java.lang.Object
  extended by org.pushingpixels.trident.callback.TimelineCallbackAdapter
      extended by org.pushingpixels.trident.callback.UIThreadTimelineCallbackAdapter
          extended by 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
protected  javax.swing.JTabbedPane tabbedPane
          The associated tabbed pane.
protected  int tabIndex
          The associated tab index.
 
Constructor Summary
SubstanceTabbedPaneUI.TabRepaintCallback(javax.swing.JTabbedPane tabPane, int tabIndex)
          Creates new tab repaint callback.
 
Method Summary
 void onTimelinePulse(float durationFraction, float timelinePosition)
           
 void onTimelineStateChanged(org.pushingpixels.trident.Timeline.TimelineState oldState, org.pushingpixels.trident.Timeline.TimelineState newState, float durationFraction, float timelinePosition)
           
protected  void repaintTab()
          Repaints the relevant tab.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tabbedPane

protected javax.swing.JTabbedPane tabbedPane
The associated tabbed pane.


tabIndex

protected int tabIndex
The associated tab index.

Constructor Detail

SubstanceTabbedPaneUI.TabRepaintCallback

public SubstanceTabbedPaneUI.TabRepaintCallback(javax.swing.JTabbedPane tabPane,
                                                int tabIndex)
Creates new tab repaint callback.

Parameters:
tabPane - The associated tabbed pane.
tabIndex - The associated tab index.
Method Detail

onTimelinePulse

public void onTimelinePulse(float durationFraction,
                            float timelinePosition)
Specified by:
onTimelinePulse in interface org.pushingpixels.trident.callback.TimelineCallback
Overrides:
onTimelinePulse in class org.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:
onTimelineStateChanged in interface org.pushingpixels.trident.callback.TimelineCallback
Overrides:
onTimelineStateChanged in class org.pushingpixels.trident.callback.TimelineCallbackAdapter

repaintTab

protected void repaintTab()
Repaints the relevant tab.