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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classThis 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 SummaryConstructorsConstructorDescriptionCreates 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- 
LoadingIconpublic LoadingIcon()Creates a new loading icon with a default delay of 50ms between frames (initially stopped)
- 
LoadingIconpublic LoadingIcon(int delay) Creates a new loading icon (initially stopped)- Parameters:
- delay- The delay between animation frames
 
 
- 
- 
Method Details- 
initTimerprotected void initTimer(int delay) 
- 
getIconHeightpublic int getIconHeight()- Specified by:
- getIconHeightin interface- Icon
 
- 
getIconWidthpublic int getIconWidth()- Specified by:
- getIconWidthin interface- Icon
 
- 
startpublic void start()Start the animation
- 
stoppublic void stop()Stop the animation
- 
paintIcon
- 
actionPerformed- Specified by:
- actionPerformedin interface- ActionListener
 
- 
repaintParentprotected void repaintParent()
 
-