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, getScale, paintBackground, scale, setScaleMethods 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
Description copied from class:FlatAbstractIconPaints icon.The graphics context is translated and scaled. This means that icon x,y coordinates are
0,0and it is not necessary to scale coordinates within this method.The bounds to be used for icon painting are: 0, 0,
FlatAbstractIcon.width,FlatAbstractIcon.height.- Specified by:
paintIconin classFlatAbstractIcon
-