Class FlatAnimatedIcon

java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
com.formdev.flatlaf.icons.FlatAnimatedIcon
All Implemented Interfaces:
AnimatedIcon, Icon, UIResource

public abstract class FlatAnimatedIcon extends FlatAbstractIcon implements AnimatedIcon
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.