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 void
actionPerformed(java.awt.event.ActionEvent e)
void
addOverlay(OverlayLayer layer)
static LayeredOverlay
create(OverlayLayer... layers)
java.util.List<OverlayLayer>
getLayers()
boolean
isAnimated()
Returns true if the overlay is animated.void
paintOverlay(javax.swing.JComponent comp, java.awt.Graphics2D g, java.awt.Rectangle rect)
Paint the overlay for a given quality monitoring componentvoid
setDelay(int delay)
Sets the time delay in milliseconds between each timer step (if this overlay contains any animated layers)void
setLayers(java.util.List<OverlayLayer> layers)
void
setTimerSteps(int timerSteps)
Sets the number of timer steps to step throughprotected void
startAnimation()
protected void
stopAnimation()
-
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:Overlay
Returns true if the overlay is animated. Animated components keep track of their components- Specified by:
isAnimated
in interfaceOverlay
-
paintOverlay
public void paintOverlay(javax.swing.JComponent comp, java.awt.Graphics2D g, java.awt.Rectangle rect)
Description copied from interface:Overlay
Paint the overlay for a given quality monitoring component- Specified by:
paintOverlay
in interfaceOverlay
-
startAnimation
protected void startAnimation()
- Specified by:
startAnimation
in classAbstractAnimatedOverlay
-
stopAnimation
protected void stopAnimation()
- Specified by:
stopAnimation
in classAbstractAnimatedOverlay
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in 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
-
-