org.pushingpixels.substance.internal.ui
Class SubstanceListUI.CellRepaintCallback

java.lang.Object
  extended by org.pushingpixels.trident.callback.TimelineCallbackAdapter
      extended by org.pushingpixels.trident.callback.UIThreadTimelineCallbackAdapter
          extended by org.pushingpixels.substance.internal.ui.SubstanceListUI.CellRepaintCallback
All Implemented Interfaces:
org.pushingpixels.trident.callback.TimelineCallback
Enclosing class:
SubstanceListUI

protected class SubstanceListUI.CellRepaintCallback
extends org.pushingpixels.trident.callback.UIThreadTimelineCallbackAdapter

Repaints a single cell during the fade animation cycle.


Field Summary
protected  int cellIndex
          Associated (animated) cell index.
protected  javax.swing.JList list
          Associated list.
 
Constructor Summary
SubstanceListUI.CellRepaintCallback(javax.swing.JList list, int cellIndex)
          Creates a new animation 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected javax.swing.JList list
Associated list.


cellIndex

protected int cellIndex
Associated (animated) cell index.

Constructor Detail

SubstanceListUI.CellRepaintCallback

public SubstanceListUI.CellRepaintCallback(javax.swing.JList list,
                                           int cellIndex)
Creates a new animation repaint callback.

Parameters:
list - Associated list.
cellIndex - Associated (animated) cell index.
Method Detail

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

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