Package com.formdev.flatlaf.util
Class AnimatedIcon.AnimationSupport
java.lang.Object
com.formdev.flatlaf.util.AnimatedIcon.AnimationSupport
- Enclosing interface:
AnimatedIcon
Animation support class that stores the animation state and implements the animation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float
private Animator
private float
private float
private float
private int
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isAnimationEnabled
(AnimatedIcon icon, Component c) static void
paintIcon
(AnimatedIcon icon, Component c, Graphics g, int x, int y) private static void
paintIconImpl
(AnimatedIcon icon, Component c, Graphics g, int x, int y, AnimatedIcon.AnimationSupport as) static void
saveIconLocation
(AnimatedIcon icon, Component c, int x, int y)
-
Field Details
-
startValue
private float startValue -
targetValue
private float targetValue -
animatedValue
private float animatedValue -
fraction
private float fraction -
animator
-
x
private int x -
y
private int y
-
-
Constructor Details
-
AnimationSupport
public AnimationSupport()
-
-
Method Details
-
paintIcon
-
paintIconImpl
private static void paintIconImpl(AnimatedIcon icon, Component c, Graphics g, int x, int y, AnimatedIcon.AnimationSupport as) -
isAnimationEnabled
-
saveIconLocation
-