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 voidaddComponent(javax.swing.JComponent comp)Adds a component to this overlay.voidremoveAllComponents()Removes all child components.voidremoveComponent(javax.swing.JComponent comp)Removes a component from this overlay.protected voidrepaintAllComponents()protected abstract voidstartAnimation()protected abstract voidstopAnimation()-
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:OverlayAdds a component to this overlay. Used for animated overlay so that they know who to animate.- Specified by:
addComponentin interfaceOverlay
-
removeAllComponents
public void removeAllComponents()
Description copied from interface:OverlayRemoves all child components. Should stop any animation timers.- Specified by:
removeAllComponentsin interfaceOverlay
-
removeComponent
public void removeComponent(javax.swing.JComponent comp)
Description copied from interface:OverlayRemoves a component from this overlay. Used for animated overlay so that they know who to animate.- Specified by:
removeComponentin interfaceOverlay
-
repaintAllComponents
protected void repaintAllComponents()
-
-