java.lang.Object
javax.swing.ImageIcon
org.gjt.sp.jedit.gui.AnimatedIcon
- All Implemented Interfaces:
Serializable,Accessible,Icon
A Animated version of ImageIcon.
It can be used anywhere an ImageIcon can be.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, loadImage, paintIcon, setDescription, setImage, setImageObserver, toString
-
Constructor Details
-
AnimatedIcon
- 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 Details
-
getFrames
-
getIcon
-
getRate
public int getRate() -
setFrames
-
setIcon
-
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
-