Class SubstanceMonthViewUI.DayRepaintCallback
java.lang.Object
org.pushingpixels.trident.callback.TimelineCallbackAdapter
org.pushingpixels.trident.callback.UIThreadTimelineCallbackAdapter
org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DayRepaintCallback
- All Implemented Interfaces:
org.pushingpixels.trident.callback.TimelineCallback
- Enclosing class:
SubstanceMonthViewUI
protected class SubstanceMonthViewUI.DayRepaintCallback
extends org.pushingpixels.trident.callback.UIThreadTimelineCallbackAdapter
Repaints a single day during the fade animation cycle.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Associated (animated) day index.protected int
protected org.jdesktop.swingx.JXMonthView
Associated control.protected int
-
Constructor Summary
ConstructorsConstructorDescriptionDayRepaintCallback
(org.jdesktop.swingx.JXMonthView monthView, int dayIndex, int monthIndex, int yearIndex) Creates a new animation repaint callback. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onTimelinePulse
(float durationFraction, float timelinePosition) void
onTimelineStateChanged
(org.pushingpixels.trident.Timeline.TimelineState oldState, org.pushingpixels.trident.Timeline.TimelineState newState, float durationFraction, float timelinePosition)
-
Field Details
-
monthView
protected org.jdesktop.swingx.JXMonthView monthViewAssociated control. -
dayIndex
protected int dayIndexAssociated (animated) day index. -
monthIndex
protected int monthIndex -
yearIndex
protected int yearIndex
-
-
Constructor Details
-
DayRepaintCallback
public DayRepaintCallback(org.jdesktop.swingx.JXMonthView monthView, int dayIndex, int monthIndex, int yearIndex) Creates a new animation repaint callback.- Parameters:
monthView
- Associated control.dayIndex
- Associated (animated) day index.
-
-
Method Details
-
onTimelinePulse
public void onTimelinePulse(float durationFraction, float timelinePosition) - Specified by:
onTimelinePulse
in interfaceorg.pushingpixels.trident.callback.TimelineCallback
- Overrides:
onTimelinePulse
in 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:
onTimelineStateChanged
in interfaceorg.pushingpixels.trident.callback.TimelineCallback
- Overrides:
onTimelineStateChanged
in classorg.pushingpixels.trident.callback.TimelineCallbackAdapter
-