Class AnimatedIcon.AnimationSupport

  • Enclosing interface:
    AnimatedIcon

    public static class AnimatedIcon.AnimationSupport
    extends java.lang.Object
    Animation support class that stores the animation state and implements the animation.
    • Field Detail

      • startValue

        private float startValue
      • targetValue

        private float targetValue
      • animatedValue

        private float animatedValue
      • fraction

        private float fraction
      • x

        private int x
      • y

        private int y
    • Constructor Detail

      • AnimationSupport

        public AnimationSupport()
    • Method Detail

      • paintIcon

        public static void paintIcon​(AnimatedIcon icon,
                                     java.awt.Component c,
                                     java.awt.Graphics g,
                                     int x,
                                     int y)
      • isAnimationEnabled

        private static boolean isAnimationEnabled​(AnimatedIcon icon,
                                                  java.awt.Component c)
      • saveIconLocation

        public static void saveIconLocation​(AnimatedIcon icon,
                                            java.awt.Component c,
                                            int x,
                                            int y)