|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectabbot.editor.widgets.AnimatedIcon
abbot.editor.widgets.AbstractAnimatedIcon
public abstract class AbstractAnimatedIcon
Provide animation of auto-generated animations. Makes use of the repaint
tracking structure established by AnimatedIcon.
| Constructor Summary | |
|---|---|
protected |
AbstractAnimatedIcon()
|
protected |
AbstractAnimatedIcon(int frameCount)
|
protected |
AbstractAnimatedIcon(int frameCount,
int interval)
|
| Method Summary | |
|---|---|
protected void |
finalize()
Ensure the timer stops running, so it, too can be GC'd. |
int |
getFrame()
Returns the current animation frame number. |
int |
getFrameCount()
Returns the total number of frames. |
int |
getFrameInterval()
|
abstract int |
getIconHeight()
|
abstract int |
getIconWidth()
|
void |
nextFrame()
Advance to the next animation frame. |
protected abstract void |
paintFrame(Component c,
Graphics g,
int x,
int y)
Implement this method to paint the icon. |
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. |
void |
setFrame(int f)
Set the current animation frame number. |
void |
setFrameInterval(int interval)
Setting a frame interval of zero stops automatic animation. |
| Methods inherited from class abbot.editor.widgets.AnimatedIcon |
|---|
isAnimated, paintIcon, repaint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractAnimatedIcon()
protected AbstractAnimatedIcon(int frameCount)
protected AbstractAnimatedIcon(int frameCount,
int interval)
| Method Detail |
|---|
protected void finalize()
finalize in class Objectpublic void setFrameInterval(int interval)
public int getFrameInterval()
public int getFrameCount()
public void nextFrame()
public void setFrame(int f)
public int getFrame()
protected abstract void paintFrame(Component c,
Graphics g,
int x,
int y)
paintFrame in class AnimatedIconpublic abstract int getIconWidth()
getIconWidth in interface IcongetIconWidth in class AnimatedIconpublic abstract int getIconHeight()
getIconHeight in interface IcongetIconHeight in class AnimatedIcon
protected void registerRepaintArea(Component c,
int x,
int y,
int w,
int h)
AnimatedIcon
registerRepaintArea in class AnimatedIcon
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||