Class RotationAnimation


  • public class RotationAnimation
    extends Animation
    Controls animation that is to do with rotation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double end  
      boolean relative  
      java.lang.Double start  
      • Fields inherited from class paintingcanvas.animation.Animation

        Modifier and Type Field Description
        int duration
        The length of the animation in frames
        Easing easing
        The easing function to use
        int startFrame
        The frame at which the animation should start
    • Constructor Summary

      Constructors 
      Constructor Description
      RotationAnimation​(double end)  
    • Field Detail

      • end

        public double end
      • start

        public java.lang.Double start
      • relative

        public boolean relative
    • Constructor Detail

      • RotationAnimation

        public RotationAnimation​(double end)
    • Method Detail

      • updateAnimation

        protected void updateAnimation​(Drawable<? extends Drawable<?>> drawable,
                                       double progress)
        Description copied from class: Animation
        update the animation with the progress (0-1) and affected drawable
        Specified by:
        updateAnimation in class Animation
        Parameters:
        drawable - The affected drawable
        progress - Animation progress (0-1)
      • initAnimation

        protected void initAnimation​(Drawable<? extends Drawable<?>> drawable)
        Description copied from class: Animation
        Initialize the animation with the affected drawable
        Specified by:
        initAnimation in class Animation
        Parameters:
        drawable - The affected drawable