|
||||||||||
| 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.Move
public class Move
ComponentEffect that moves a component from its position in the start state to its position in the end state, based on linear interpolation between the two points during the time of the animated transition. The class extends ComponentImageEffect to use a simple image copy for rendering the component rather than re-rendering the actual component during each frame.
| Field Summary |
|---|
| Fields inherited from class org.zilonis.tool.ext.aerith.effects.ComponentEffect |
|---|
componentImage, end, height, renderComponent, start, width, x, y |
| Constructor Summary | |
|---|---|
Move()
REMIND: docs |
|
Move(ComponentState start,
ComponentState end)
REMIND: docs |
|
| Method Summary | |
|---|---|
void |
setup(java.awt.Graphics2D g2d,
float fraction)
This method is called during each frame of the transition animation, prior to the call to paint(). |
| Methods inherited from class org.zilonis.tool.ext.aerith.effects.ComponentEffect |
|---|
getComponent, getComponentImage, getEnd, getStart, paint, setComponentImage, setComponentStates, setEnd, setStart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Move()
public Move(ComponentState start,
ComponentState end)
| Method Detail |
|---|
public void setup(java.awt.Graphics2D g2d,
float fraction)
ComponentEffectpaint().
Subclasses will implement this method to set up the Graphic state,
or other related state, that will be used in the following call to
the paint() method. Note that changes to the
Graphics2D object here will still be present in the
Graphics2D object that is passed into the
paint() method, so this is a good time to set up things
such as transform state.
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 | |||||||||