Class 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 Detail

      • comps

        protected java.util.HashSet<javax.swing.JComponent> comps
    • Constructor Detail

      • AbstractAnimatedOverlay

        public AbstractAnimatedOverlay()
    • 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 interface Overlay
      • removeAllComponents

        public void removeAllComponents()
        Description copied from interface: Overlay
        Removes all child components. Should stop any animation timers.
        Specified by:
        removeAllComponents in interface Overlay
      • 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 interface Overlay
      • repaintAllComponents

        protected void repaintAllComponents()