Class RadianceTableHeaderUI.ColumnHeaderRepaintCallback
java.lang.Object
org.pushingpixels.radiance.animation.api.callback.TimelineCallbackAdapter
org.pushingpixels.radiance.animation.api.swing.EventDispatchThreadTimelineCallbackAdapter
org.pushingpixels.radiance.theming.internal.ui.RadianceTableHeaderUI.ColumnHeaderRepaintCallback
- All Implemented Interfaces:
TimelineCallback
- Enclosing class:
RadianceTableHeaderUI
protected static class RadianceTableHeaderUI.ColumnHeaderRepaintCallback
extends EventDispatchThreadTimelineCallbackAdapter
Repaints a single column header during the fade animation cycle.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intAssociated (animated) column index.protected JTableHeaderAssociated table header. -
Constructor Summary
ConstructorsConstructorDescriptionColumnHeaderRepaintCallback(JTableHeader header, int columnIndex) Creates a new animation repaint callback. -
Method Summary
Modifier and TypeMethodDescriptionvoidonTimelinePulse(float durationFraction, float timelinePosition) Indicates that the timeline pulse has happened.voidonTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) Indicates that the timeline state has changed.private voidRepaints the associated cell.
-
Field Details
-
header
Associated table header. -
columnIndex
protected int columnIndexAssociated (animated) column index.
-
-
Constructor Details
-
ColumnHeaderRepaintCallback
Creates a new animation repaint callback.- Parameters:
header- Associated table header.columnIndex- Associated (animated) column index.
-
-
Method Details
-
onTimelinePulse
public void onTimelinePulse(float durationFraction, float timelinePosition) Description copied from interface:TimelineCallbackIndicates that the timeline pulse has happened.- Specified by:
onTimelinePulsein interfaceTimelineCallback- Overrides:
onTimelinePulsein 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:TimelineCallbackIndicates that the timeline state has changed.- Specified by:
onTimelineStateChangedin interfaceTimelineCallback- Overrides:
onTimelineStateChangedin 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).
-
repaintColumnHeader
private void repaintColumnHeader()Repaints the associated cell.
-