Class AbstractAnimatedOverlay
java.lang.Object
com.inductiveautomation.factorypmi.application.components.overlay.AbstractAnimatedOverlay
- All Implemented Interfaces:
Overlay
- Direct Known Subclasses:
LayeredOverlay
Provides the plumbing to keep track of the overlay's components if the overlay is animated.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(JComponent comp) Adds a component to this overlay.void
Removes all child components.void
removeComponent
(JComponent comp) Removes a component from this overlay.protected void
protected abstract void
protected abstract void
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
-
Field Details
-
comps
-
-
Constructor Details
-
AbstractAnimatedOverlay
public AbstractAnimatedOverlay()
-
-
Method Details
-
stopAnimation
protected abstract void stopAnimation() -
startAnimation
protected abstract void startAnimation() -
addComponent
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
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()
-