Class CachedTimelineTransition

    • Constructor Detail

      • CachedTimelineTransition

        public CachedTimelineTransition​(Node node,
                                        Timeline timeline)
        Create new CachedTimelineTransition
        Parameters:
        node - The node that is being animated by the timeline
        timeline - The timeline for the animation, it should be from 0 to 1 seconds
      • CachedTimelineTransition

        public CachedTimelineTransition​(Node node,
                                        Timeline timeline,
                                        boolean useCache)
        Create new CachedTimelineTransition
        Parameters:
        node - The node that is being animated by the timeline
        timeline - The timeline for the animation, it should be from 0 to 1 seconds
        useCache - When true the node is cached as image during the animation
      • CachedTimelineTransition

        public CachedTimelineTransition​(Node node,
                                        Timeline timeline,
                                        boolean useCache,
                                        boolean opacityInterpolated)
        Create new CachedTimelineTransition
        Parameters:
        node - The node that is being animated by the timeline
        timeline - The timeline for the animation, it should be from 0 to 1 seconds
        useCache - When true the node is cached as image during the animation
        opacityInterpolated - When true opacity is interpolated during the transition
    • Method Detail

      • starting

        protected void starting()
        Called when the animation is starting
        Overrides:
        starting in class MobileTransition
      • stopping

        protected void stopping()
        Called when the animation is stopping
        Overrides:
        stopping in class MobileTransition
      • hideNode

        public final void hideNode()
        Called before starting the animation, in those cases where the animation will set the opacity to 0.0 right at the start. It must be called from the different transitions, in order to hide the node so it won't be visible during the initial delay, when it is added to the scene but the animation has not started yet.
      • isOpacityInterpolated

        protected boolean isOpacityInterpolated()