| com.blogofbug.swing.components.effects.EffectContainer
All known Subclasses: com.blogofbug.swing.components.effects.EffectEngine,
EffectContainer | public interface EffectContainer (Code) | | The interface defines a component that can contain effects.
author: nigel |
addEffect | void addEffect(Effect effect)(Code) | | Adds an effect to the container.
Parameters: effect - The effect to add |
getHeight | int getHeight()(Code) | | Determines the height of the container
The height in pixels of the container |
getWidth | int getWidth()(Code) | | Determines the width of the container
The width in pixels of the container |
paintEffects | void paintEffects(Graphics graphics)(Code) | | Called when the effects need paintin'
Parameters: graphics - The graphics context |
removeEffect | void removeEffect(Effect effect)(Code) | | Removes an effect from the container
Parameters: effect - The effect to remove |
update | boolean update()(Code) | | Called when the timer fires. It updates any effects that need updating,
removes any that have finished, and then if at leat one has updated
stimulates a repaint.
true if a repaint should occur |
wakeEffect | void wakeEffect(Effect effect)(Code) | | Wakes an inactive effect.
Parameters: effect - The effect |
|
|