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 TypeMethodDescriptionvoidvoidaddOverlay(OverlayLayer layer) static LayeredOverlaycreate(OverlayLayer... layers) booleanReturns true if the overlay is animated.voidpaintOverlay(JComponent comp, Graphics2D g, 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(List<OverlayLayer> layers) voidsetTimerSteps(int timerSteps) Sets the number of timer steps to step throughprotected voidprotected voidMethods 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:OverlayReturns true if the overlay is animated. Animated components keep track of their components- Specified by:
isAnimatedin interfaceOverlay
-
paintOverlay
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
- Specified by:
actionPerformedin 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
-