java.lang.Object
com.inductiveautomation.factorypmi.application.components.overlay.AbstractAnimatedOverlay
com.inductiveautomation.factorypmi.application.components.overlay.LayeredOverlay
All Implemented Interfaces:
Overlay, ActionListener, EventListener

public class LayeredOverlay extends AbstractAnimatedOverlay implements ActionListener
  • Field Details

  • Constructor Details

    • LayeredOverlay

      public LayeredOverlay()
  • Method Details

    • create

      public static LayeredOverlay create(OverlayLayer... layers)
    • addOverlay

      public void addOverlay(OverlayLayer layer)
    • getLayers

      public List<OverlayLayer> getLayers()
    • setLayers

      public void setLayers(List<OverlayLayer> layers)
    • isAnimated

      public boolean isAnimated()
      Description copied from interface: Overlay
      Returns true if the overlay is animated. Animated components keep track of their components
      Specified by:
      isAnimated in interface Overlay
    • paintOverlay

      public void paintOverlay(JComponent comp, Graphics2D g, Rectangle rect)
      Description copied from interface: Overlay
      Paint the overlay for a given quality monitoring component
      Specified by:
      paintOverlay in interface Overlay
    • startAnimation

      protected void startAnimation()
      Specified by:
      startAnimation in class AbstractAnimatedOverlay
    • stopAnimation

      protected void stopAnimation()
      Specified by:
      stopAnimation in class AbstractAnimatedOverlay
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • setDelay

      public void setDelay(int delay)
      Sets the time delay in milliseconds between each timer step (if this overlay contains any animated layers)
    • setTimerSteps

      public void setTimerSteps(int timerSteps)
      Sets the number of timer steps to step through