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 TypeMethodDescriptionvoidaddComponent(JComponent comp) Adds a component to this overlay.voidRemoves all child components.voidremoveComponent(JComponent comp) Removes a component from this overlay.protected voidprotected abstract voidprotected abstract voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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: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
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()
-