Package com.formdev.flatlaf.icons
Class FlatAnimatedIcon
java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
com.formdev.flatlaf.icons.FlatAnimatedIcon
- All Implemented Interfaces:
AnimatedIcon
,Icon
,UIResource
Base class for animated icons that scale width and height, creates and initializes
a scaled graphics context for icon painting.
Subclasses do not need to scale icon painting.
This class does not store any state information (needed for animation) in its instance. Instead, a client property is set on the painted component. This makes it possible to use a share icon instance for multiple components.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.formdev.flatlaf.util.AnimatedIcon
AnimatedIcon.AnimationSupport
-
Field Summary
Fields inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
color, height, width
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
getIconHeight, getIconWidth
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.formdev.flatlaf.util.AnimatedIcon
getAnimationDuration, getAnimationInterpolator, getAnimationResolution, getClientPropertyKey, getValue, isAnimationEnabled, paintIconAnimated
Methods inherited from interface javax.swing.Icon
getIconHeight, getIconWidth
-
Constructor Details
-
FlatAnimatedIcon
-
-
Method Details
-
paintIcon
- Specified by:
paintIcon
in interfaceAnimatedIcon
- Specified by:
paintIcon
in interfaceIcon
- Overrides:
paintIcon
in classFlatAbstractIcon
-
paintIcon
- Specified by:
paintIcon
in classFlatAbstractIcon
-