java.lang.Object
com.inductiveautomation.ignition.client.util.gui.LoadingIcon
All Implemented Interfaces:
ActionListener, EventListener, Icon
Direct Known Subclasses:
LoadingIcon.Unsafe

public class LoadingIcon extends Object implements Icon, ActionListener
An icon that displays an simple animation while something is loading
  • Constructor Details

    • LoadingIcon

      public LoadingIcon()
      Creates a new loading icon with a default delay of 50ms between frames (initially stopped)
    • LoadingIcon

      public LoadingIcon(int delay)
      Creates a new loading icon (initially stopped)
      Parameters:
      delay - The delay between animation frames
  • Method Details

    • initTimer

      protected void initTimer(int delay)
    • getIconHeight

      public int getIconHeight()
      Specified by:
      getIconHeight in interface Icon
    • getIconWidth

      public int getIconWidth()
      Specified by:
      getIconWidth in interface Icon
    • start

      public void start()
      Start the animation
    • stop

      public void stop()
      Stop the animation
    • paintIcon

      public void paintIcon(Component c, Graphics graphics, int x, int y)
      Specified by:
      paintIcon in interface Icon
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • repaintParent

      protected void repaintParent()