Class LoadingIcon
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.LoadingIcon
- All Implemented Interfaces:
ActionListener
,EventListener
,Icon
- Direct Known Subclasses:
LoadingIcon.Unsafe
An icon that displays an simple animation while something is loading
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class is a subclass of LoadingIcon that uses a (shared) java.util.Timer, and issues repaintImmediately commands to the parent component on non-EDT thread. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new loading icon with a default delay of 50ms between frames (initially stopped)LoadingIcon
(int delay) Creates a new loading icon (initially stopped) -
Method Summary
-
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 interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
start
public void start()Start the animation -
stop
public void stop()Stop the animation -
paintIcon
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
repaintParent
protected void repaintParent()
-