| java.lang.Object abbot.editor.widgets.AnimatedIcon
All known Subclasses: abbot.editor.widgets.AbstractAnimatedIcon,
AnimatedIcon | public class AnimatedIcon implements Icon(Code) | | Ensures animated icons are properly handled within objects that use
renderers within a
CellRendererPane to render the icon. Keeps
a list of repaint rectangles to be used to queue repaint requests when
the animated icon indicates an update. The set of repaint rectangles
is cleared after the repaint requests are queued.
author: twall |
Constructor Summary | |
protected | AnimatedIcon() For use by derived classes that don't have an original. | public | AnimatedIcon(ImageIcon original) Create an icon that takes care of animating itself on components
which use a CellRendererPane. |
Method Summary | |
public int | getIconHeight() | public int | getIconWidth() | public static boolean | isAnimated(Icon icon) Returns whether the given icon is an animated GIF. | protected void | paintFrame(Component c, Graphics g, int x, int y) | public synchronized void | paintIcon(Component c, Graphics g, int x, int y) | protected void | registerRepaintArea(Component c, int x, int y, int w, int h) Register repaint areas, which get get cleared once the repaint request
has been queued. | protected synchronized void | repaint() Trigger a repaint on all components on which we've previously been
painted. |
AnimatedIcon | protected AnimatedIcon()(Code) | | For use by derived classes that don't have an original.
|
AnimatedIcon | public AnimatedIcon(ImageIcon original)(Code) | | Create an icon that takes care of animating itself on components
which use a CellRendererPane.
|
getIconHeight | public int getIconHeight()(Code) | | |
getIconWidth | public int getIconWidth()(Code) | | |
isAnimated | public static boolean isAnimated(Icon icon)(Code) | | Returns whether the given icon is an animated GIF.
|
registerRepaintArea | protected void registerRepaintArea(Component c, int x, int y, int w, int h)(Code) | | Register repaint areas, which get get cleared once the repaint request
has been queued.
|
repaint | protected synchronized void repaint()(Code) | | Trigger a repaint on all components on which we've previously been
painted.
|
|
|