|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object abbot.editor.widgets.AnimatedIcon
public class AnimatedIcon
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.
Constructor Summary | |
---|---|
protected |
AnimatedIcon()
For use by derived classes that don't have an original. |
|
AnimatedIcon(ImageIcon original)
Create an icon that takes care of animating itself on components which use a CellRendererPane. |
Method Summary | |
---|---|
int |
getIconHeight()
|
int |
getIconWidth()
|
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)
|
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 void |
repaint()
Trigger a repaint on all components on which we've previously been painted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AnimatedIcon()
public AnimatedIcon(ImageIcon original)
Method Detail |
---|
public static boolean isAnimated(Icon icon)
protected void repaint()
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
protected void paintFrame(Component c, Graphics g, int x, int y)
protected void registerRepaintArea(Component c, int x, int y, int w, int h)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |