Class AbstractAnimatedOverlay
- java.lang.Object
-
- com.inductiveautomation.factorypmi.application.components.overlay.AbstractAnimatedOverlay
-
- All Implemented Interfaces:
Overlay
- Direct Known Subclasses:
LayeredOverlay
public abstract class AbstractAnimatedOverlay extends java.lang.Object implements Overlay
Provides the plumbing to keep track of the overlay's components if the overlay is animated.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.HashSet<javax.swing.JComponent>
comps
-
Constructor Summary
Constructors Constructor Description AbstractAnimatedOverlay()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addComponent(javax.swing.JComponent comp)
Adds a component to this overlay.void
removeAllComponents()
Removes all child components.void
removeComponent(javax.swing.JComponent comp)
Removes a component from this overlay.protected void
repaintAllComponents()
protected abstract void
startAnimation()
protected abstract void
stopAnimation()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.factorypmi.application.components.overlay.Overlay
isAnimated, paintOverlay
-
-
-
-
Method Detail
-
stopAnimation
protected abstract void stopAnimation()
-
startAnimation
protected abstract void startAnimation()
-
addComponent
public void addComponent(javax.swing.JComponent comp)
Description copied from interface:Overlay
Adds a component to this overlay. Used for animated overlay so that they know who to animate.- Specified by:
addComponent
in interfaceOverlay
-
removeAllComponents
public void removeAllComponents()
Description copied from interface:Overlay
Removes all child components. Should stop any animation timers.- Specified by:
removeAllComponents
in interfaceOverlay
-
removeComponent
public void removeComponent(javax.swing.JComponent comp)
Description copied from interface:Overlay
Removes a component from this overlay. Used for animated overlay so that they know who to animate.- Specified by:
removeComponent
in interfaceOverlay
-
repaintAllComponents
protected void repaintAllComponents()
-
-