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 floatprivate Animatorprivate floatprivate floatprivate floatprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanisAnimationEnabled(AnimatedIcon icon, Component c) static voidpaintIcon(AnimatedIcon icon, Component c, Graphics g, int x, int y) private static voidpaintIconImpl(AnimatedIcon icon, Component c, Graphics g, int x, int y, AnimatedIcon.AnimationSupport as) static voidsaveIconLocation(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
-