org.pushingpixels.substance.internal.ui
Class SubstanceTableUI.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.SubstanceTableUI.CellRepaintCallback
All Implemented Interfaces:
org.pushingpixels.trident.callback.TimelineCallback
Enclosing class:
SubstanceTableUI

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

Repaints a single cell during the fade animation cycle.


Field Summary
protected  int columnIndex
          Associated (animated) column index.
protected  int rowIndex
          Associated (animated) row index.
protected  javax.swing.JTable table
          Associated table.
 
Constructor Summary
SubstanceTableUI.CellRepaintCallback(javax.swing.JTable table, int rowIndex, int columnIndex)
          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

table

protected javax.swing.JTable table
Associated table.


rowIndex

protected int rowIndex
Associated (animated) row index.


columnIndex

protected int columnIndex
Associated (animated) column index.

Constructor Detail

SubstanceTableUI.CellRepaintCallback

public SubstanceTableUI.CellRepaintCallback(javax.swing.JTable table,
                                            int rowIndex,
                                            int columnIndex)
Creates a new animation repaint callback.

Parameters:
table - Associated table.
rowIndex - Associated (animated) row index.
columnIndex - Associated (animated) column 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