Class SubstanceMonthViewUI.MonthRepaintCallback

  • All Implemented Interfaces:
    org.pushingpixels.trident.callback.TimelineCallback
    Enclosing class:
    SubstanceMonthViewUI

    protected class SubstanceMonthViewUI.MonthRepaintCallback
    extends org.pushingpixels.trident.callback.UIThreadTimelineCallbackAdapter
    Repaints a single month during the fade animation cycle.
    • Field Detail

      • monthView

        protected org.jdesktop.swingx.JXMonthView monthView
        Associated control.
      • monthIndex

        protected int monthIndex
        Associated (animated) month index.
      • yearIndex

        protected int yearIndex
    • Constructor Detail

      • MonthRepaintCallback

        public MonthRepaintCallback​(org.jdesktop.swingx.JXMonthView monthView,
                                    int monthIndex,
                                    int yearIndex)
        Creates a new animation repaint callback.
        Parameters:
        monthView - Associated control.
        monthIndex - Associated (animated) month 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