Package org.gjt.sp.jedit.gui
Class AnimatedIcon
- java.lang.Object
-
- javax.swing.ImageIcon
-
- org.gjt.sp.jedit.gui.AnimatedIcon
-
- All Implemented Interfaces:
java.io.Serializable,javax.accessibility.Accessible,javax.swing.Icon
public class AnimatedIcon extends javax.swing.ImageIconA Animated version of ImageIcon. It can be used anywhere an ImageIcon can be.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AnimatedIcon(java.awt.Image icon, java.awt.Image[] frames, int rate, java.awt.Component host)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Image[]getFrames()java.awt.ImagegetIcon()intgetRate()voidsetFrames(java.awt.Image[] frames)voidsetIcon(java.awt.Image icon)voidsetRate(int rate)voidstart()Starts the animation rollingvoidstop()Stops the animation, and resets to frame 0
-
-
-
Constructor Detail
-
AnimatedIcon
public AnimatedIcon(java.awt.Image icon, java.awt.Image[] frames, int rate, java.awt.Component host)- Parameters:
frames- The frames to be used in the animationrate- The frame rate of the animation, in frames per secondhost- The container that the animation is used in
-
-
Method Detail
-
getFrames
public java.awt.Image[] getFrames()
-
getIcon
public java.awt.Image getIcon()
-
getRate
public int getRate()
-
setFrames
public void setFrames(java.awt.Image[] frames)
-
setIcon
public void setIcon(java.awt.Image icon)
-
setRate
public void setRate(int rate)
-
start
public void start()
Starts the animation rolling
-
stop
public void stop()
Stops the animation, and resets to frame 0
-
-