|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zilonis.tool.ext.aerith.effects.ComponentEffect
org.zilonis.tool.ext.aerith.effects.CompositeEffect
public class CompositeEffect
This Effect combines one or more sub-effects to create a more complex and interesting effect. For example, you could create an effect that both moves and scales by creating a CompositeEffect with the Move and Scale effects. Composite effects are created by simply adding effects in the order that you want them combined.
| Field Summary |
|---|
| Fields inherited from class org.zilonis.tool.ext.aerith.effects.ComponentEffect |
|---|
componentImage, end, height, renderComponent, start, width, x, y |
| Constructor Summary | |
|---|---|
CompositeEffect()
Creates a CompositeEffect with no sub-effects. |
|
CompositeEffect(ComponentEffect effect)
Creates a CompositeEffect with the given effect as the first sub-effect. |
|
| Method Summary | |
|---|---|
void |
addEffect(ComponentEffect effect)
Adds an additional effect to this CompositeEffect. |
void |
setEnd(ComponentState end)
This method is called during the initialization process of a transition and allows the effects to set up the end state for each effect. |
void |
setStart(ComponentState start)
This method is called during the initialization process of a transition and allows the effects to set up the start state for each effect. |
void |
setup(java.awt.Graphics2D g2d,
float fraction)
This method is called during each frame of the transition animation and allows the effect to set up the Graphics state according to the various sub-effects in this CompositeEffect. |
| Methods inherited from class org.zilonis.tool.ext.aerith.effects.ComponentEffect |
|---|
getComponent, getComponentImage, getEnd, getStart, paint, setComponentImage, setComponentStates |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeEffect()
addEffect method.
public CompositeEffect(ComponentEffect effect)
addEffect method.
| Method Detail |
|---|
public void addEffect(ComponentEffect effect)
public void setStart(ComponentState start)
setStart in class ComponentEffectpublic void setEnd(ComponentState end)
setEnd in class ComponentEffect
public void setup(java.awt.Graphics2D g2d,
float fraction)
setup in class ComponentEffectg2d - the Graphics2D destination for this renderingfraction - The fraction of elapsed time in this animation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||