Class SubstanceTreeUI.PathRepaintCallback

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

    protected class SubstanceTreeUI.PathRepaintCallback
    extends org.pushingpixels.trident.callback.UIThreadTimelineCallbackAdapter
    Repaints a single path during the fade animation cycle.
    • Field Detail

      • tree

        protected JTree tree
        Associated tree.
      • treePath

        protected TreePath treePath
        Associated (animated) path.
    • Constructor Detail

      • PathRepaintCallback

        public PathRepaintCallback​(JTree tree,
                                   TreePath treePath)
        Creates a new animation repaint callback.
        Parameters:
        tree - Associated tree.
        treePath - Associated (animated) path.
    • 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