Class LayeredOverlay
- java.lang.Object
 - 
- com.inductiveautomation.factorypmi.application.components.overlay.AbstractAnimatedOverlay
 - 
- com.inductiveautomation.factorypmi.application.components.overlay.LayeredOverlay
 
 
 
- 
- All Implemented Interfaces:
 Overlay,java.awt.event.ActionListener,java.util.EventListener
public class LayeredOverlay extends AbstractAnimatedOverlay implements java.awt.event.ActionListener
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected java.util.List<OverlayLayer>layers- 
Fields inherited from class com.inductiveautomation.factorypmi.application.components.overlay.AbstractAnimatedOverlay
comps 
 - 
 
- 
Constructor Summary
Constructors Constructor Description LayeredOverlay() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidaddOverlay(OverlayLayer layer)static LayeredOverlaycreate(OverlayLayer... layers)java.util.List<OverlayLayer>getLayers()booleanisAnimated()Returns true if the overlay is animated.voidpaintOverlay(javax.swing.JComponent comp, java.awt.Graphics2D g, java.awt.Rectangle rect)Paint the overlay for a given quality monitoring componentvoidsetDelay(int delay)Sets the time delay in milliseconds between each timer step (if this overlay contains any animated layers)voidsetLayers(java.util.List<OverlayLayer> layers)voidsetTimerSteps(int timerSteps)Sets the number of timer steps to step throughprotected voidstartAnimation()protected voidstopAnimation()- 
Methods inherited from class com.inductiveautomation.factorypmi.application.components.overlay.AbstractAnimatedOverlay
addComponent, removeAllComponents, removeComponent, repaintAllComponents 
 - 
 
 - 
 
- 
- 
Field Detail
- 
layers
protected java.util.List<OverlayLayer> layers
 
 - 
 
- 
Method Detail
- 
create
public static LayeredOverlay create(OverlayLayer... layers)
 
- 
addOverlay
public void addOverlay(OverlayLayer layer)
 
- 
getLayers
public java.util.List<OverlayLayer> getLayers()
 
- 
setLayers
public void setLayers(java.util.List<OverlayLayer> layers)
 
- 
isAnimated
public boolean isAnimated()
Description copied from interface:OverlayReturns true if the overlay is animated. Animated components keep track of their components- Specified by:
 isAnimatedin interfaceOverlay
 
- 
paintOverlay
public void paintOverlay(javax.swing.JComponent comp, java.awt.Graphics2D g, java.awt.Rectangle rect)Description copied from interface:OverlayPaint the overlay for a given quality monitoring component- Specified by:
 paintOverlayin interfaceOverlay
 
- 
startAnimation
protected void startAnimation()
- Specified by:
 startAnimationin classAbstractAnimatedOverlay
 
- 
stopAnimation
protected void stopAnimation()
- Specified by:
 stopAnimationin classAbstractAnimatedOverlay
 
- 
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
 actionPerformedin interfacejava.awt.event.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 
 - 
 
 -