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, repaintAllComponentsprotected 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()
OverlayisAnimated in interface Overlaypublic void paintOverlay(javax.swing.JComponent comp,
java.awt.Graphics2D g,
java.awt.Rectangle rect)
OverlaypaintOverlay in interface Overlayprotected void startAnimation()
startAnimation in class AbstractAnimatedOverlayprotected void stopAnimation()
stopAnimation in class AbstractAnimatedOverlaypublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void setDelay(int delay)
public void setTimerSteps(int timerSteps)