public class LayeredOverlay extends AbstractAnimatedOverlay implements java.awt.event.ActionListener
Modifier and Type | Field and Description |
---|---|
protected java.util.List<OverlayLayer> |
layers |
comps
Constructor and Description |
---|
LayeredOverlay() |
Modifier and Type | Method and 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 component
|
void |
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 through
|
protected void |
startAnimation() |
protected void |
stopAnimation() |
addComponent, removeAllComponents, removeComponent, repaintAllComponents
protected java.util.List<OverlayLayer> layers
public static LayeredOverlay create(OverlayLayer... layers)
public void addOverlay(OverlayLayer layer)
public java.util.List<OverlayLayer> getLayers()
public void setLayers(java.util.List<OverlayLayer> layers)
public boolean isAnimated()
Overlay
isAnimated
in interface Overlay
public void paintOverlay(javax.swing.JComponent comp, java.awt.Graphics2D g, java.awt.Rectangle rect)
Overlay
paintOverlay
in interface Overlay
protected void startAnimation()
startAnimation
in class AbstractAnimatedOverlay
protected void stopAnimation()
stopAnimation
in class AbstractAnimatedOverlay
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void setDelay(int delay)
delay
- public void setTimerSteps(int timerSteps)
timerSteps
-