public class AnimatedIcon
extends java.lang.Object
implements javax.swing.Icon
Modifier and Type | Class and Description |
---|---|
static class |
AnimatedIcon.Big |
static class |
AnimatedIcon.Blinking |
static class |
AnimatedIcon.Default |
static class |
AnimatedIcon.Fading |
static interface |
AnimatedIcon.Frame |
static class |
AnimatedIcon.FS |
static class |
AnimatedIcon.Recording |
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Boolean> |
ANIMATION_IN_RENDERER_ALLOWED
This key is used to allow animated icons in lists, tables and trees.
|
Constructor and Description |
---|
AnimatedIcon(AnimatedIcon.Frame... frames) |
AnimatedIcon(int delay,
javax.swing.Icon... icons) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canRefresh(java.awt.Component component) |
protected void |
doRefresh(java.awt.Component component) |
int |
getIconHeight() |
int |
getIconWidth() |
protected java.awt.Component |
getRendererOwner(java.awt.Component component) |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
public static final Key<java.lang.Boolean> ANIMATION_IN_RENDERER_ALLOWED
true
the corresponding component
will be automatically repainted to update an animated icon painted by the renderer of the component.
Note, that animation may cause a performance problems and should not be used everywhere.public AnimatedIcon(int delay, javax.swing.Icon... icons)
public AnimatedIcon(AnimatedIcon.Frame... frames)
public final void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public final int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public final int getIconHeight()
getIconHeight
in interface javax.swing.Icon
protected boolean canRefresh(java.awt.Component component)
protected void doRefresh(java.awt.Component component)
protected java.awt.Component getRendererOwner(java.awt.Component component)