Module jEdit

Class AnimatedIcon

java.lang.Object
javax.swing.ImageIcon
org.gjt.sp.jedit.gui.AnimatedIcon
All Implemented Interfaces:
Serializable, Accessible, Icon

public class AnimatedIcon extends ImageIcon
A Animated version of ImageIcon. It can be used anywhere an ImageIcon can be.
See Also:
  • Constructor Details

    • AnimatedIcon

      public AnimatedIcon(Image icon, Image[] frames, int rate, Component host)
      Parameters:
      frames - The frames to be used in the animation
      rate - The frame rate of the animation, in frames per second
      host - The container that the animation is used in
  • Method Details

    • getFrames

      public Image[] getFrames()
    • getIcon

      public Image getIcon()
    • getRate

      public int getRate()
    • setFrames

      public void setFrames(Image[] frames)
    • setIcon

      public void setIcon(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