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 AnimatedIcon
AnimatedIcon.AnimationSupport -
Field Summary
Fields inherited from class FlatAbstractIcon
color, height, width -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FlatAbstractIcon
getIconHeight, getIconWidth, paintBackgroundMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AnimatedIcon
getAnimationDuration, getAnimationInterpolator, getAnimationResolution, getClientPropertyKey, getValue, isAnimationEnabled, paintIconAnimatedMethods inherited from interface Icon
getIconHeight, getIconWidth
-
Constructor Details
-
FlatAnimatedIcon
-
-
Method Details
-
paintIcon
- Specified by:
paintIconin interfaceAnimatedIcon- Specified by:
paintIconin interfaceIcon- Overrides:
paintIconin classFlatAbstractIcon
-
paintIcon
- Specified by:
paintIconin classFlatAbstractIcon
-