Class Timeline

    • Constructor Detail

      • Timeline

        protected Timeline​(java.lang.Object mainTimelineObject)
    • Method Detail

      • builder

        public static Timeline.Builder builder​(java.lang.Object mainTimelineObject)
      • shouldForceUiUpdate

        protected boolean shouldForceUiUpdate​()
      • playSkipping

        public void playSkipping​(long msToSkip)
      • playReverse

        public void playReverse​()
      • playReverseSkipping

        public void playReverseSkipping​(long msToSkip)
      • replay

        public void replay​()
      • replayReverse

        public void replayReverse​()
      • playLoopSkipping

        public void playLoopSkipping​(int loopCount,
                                     Timeline.RepeatBehavior repeatBehavior,
                                     long msToSkip)
      • end

        public void end​()
        Ends this timeline. The timeline transitions to the Timeline.TimelineState.DONE state, with the timeline position set to 0.0 or 1.0 - based on the direction of the timeline. After application callbacks and field interpolations are done on the Timeline.TimelineState.DONE state, the timeline transitions to the Timeline.TimelineState.IDLE state. Application callbacks and field interpolations are done on this state as well.
        See Also:
        cancel(), abort()
      • abort

        public void abort​()
        Aborts this timeline. The timeline transitions to the Timeline.TimelineState.IDLE state. No application callbacks or field interpolations are done.
        See Also:
        cancel(), end()
      • suspend

        public void suspend​()
      • resume

        public void resume​()
      • cancelAtCycleBreak

        public void cancelAtCycleBreak​()
        Requests that the specified timeline should stop at the end of the cycle. This method should be called only on looping timelines.
      • getId

        protected static long getId​()
        Returns a unique ID.
        Returns:
        Unique ID.
      • getTimelinePosition

        public final float getTimelinePosition​()
      • getDurationFraction

        public final float getDurationFraction​()
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object
      • getDuration

        public final long getDuration​()
      • getInitialDelay

        public long getInitialDelay​()
      • getCycleDelay

        public long getCycleDelay​()
      • getName

        public java.lang.String getName​()
      • getMainObject

        public java.lang.Object getMainObject​()
      • getSecondaryId

        public java.lang.Comparable<?> getSecondaryId​()