Class LoadingIcon
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.util.gui.LoadingIcon
 
- 
- All Implemented Interfaces:
- java.awt.event.ActionListener,- java.util.EventListener,- javax.swing.Icon
 - Direct Known Subclasses:
- LoadingIcon.Unsafe
 
 public class LoadingIcon extends java.lang.Object implements javax.swing.Icon, java.awt.event.ActionListenerAn icon that displays an simple animation while something is loading
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classLoadingIcon.UnsafeThis 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 SummaryConstructors Constructor Description LoadingIcon()Creates 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)intgetIconHeight()intgetIconWidth()protected voidinitTimer(int delay)voidpaintIcon(java.awt.Component c, java.awt.Graphics graphics, int x, int y)protected voidrepaintParent()voidstart()Start the animationvoidstop()Stop the animation
 
- 
- 
- 
Method Detail- 
initTimerprotected void initTimer(int delay) 
 - 
getIconHeightpublic int getIconHeight() - Specified by:
- getIconHeightin interface- javax.swing.Icon
 
 - 
getIconWidthpublic int getIconWidth() - Specified by:
- getIconWidthin interface- javax.swing.Icon
 
 - 
startpublic void start() Start the animation
 - 
stoppublic void stop() Stop the animation
 - 
paintIconpublic void paintIcon(java.awt.Component c, java.awt.Graphics graphics, int x, int y)- Specified by:
- paintIconin interface- javax.swing.Icon
 
 - 
actionPerformedpublic void actionPerformed(java.awt.event.ActionEvent e) - Specified by:
- actionPerformedin interface- java.awt.event.ActionListener
 
 - 
repaintParentprotected void repaintParent() 
 
- 
 
-