Class LayeredOverlay
java.lang.Object
com.inductiveautomation.factorypmi.application.components.overlay.AbstractAnimatedOverlay
com.inductiveautomation.factorypmi.application.components.overlay.LayeredOverlay
- All Implemented Interfaces:
Overlay
,ActionListener
,EventListener
-
Field Summary
FieldsFields inherited from class com.inductiveautomation.factorypmi.application.components.overlay.AbstractAnimatedOverlay
comps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addOverlay
(OverlayLayer layer) static LayeredOverlay
create
(OverlayLayer... layers) boolean
Returns true if the overlay is animated.void
paintOverlay
(JComponent comp, Graphics2D g, 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
(List<OverlayLayer> layers) void
setTimerSteps
(int timerSteps) Sets the number of timer steps to step throughprotected void
protected void
Methods inherited from class com.inductiveautomation.factorypmi.application.components.overlay.AbstractAnimatedOverlay
addComponent, removeAllComponents, removeComponent, repaintAllComponents
-
Field Details
-
layers
-
-
Constructor Details
-
LayeredOverlay
public LayeredOverlay()
-
-
Method Details
-
create
-
addOverlay
-
getLayers
-
setLayers
-
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
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
- Specified by:
actionPerformed
in interfaceActionListener
-
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
-