org.zilonis.tool.ext.aerith.effects
Class Move

java.lang.Object
  extended by org.zilonis.tool.ext.aerith.effects.ComponentEffect
      extended by org.zilonis.tool.ext.aerith.effects.Move

public class Move
extends ComponentEffect

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

Move

public Move()
REMIND: docs


Move

public Move(ComponentState start,
            ComponentState end)
REMIND: docs

Method Detail

setup

public void setup(java.awt.Graphics2D g2d,
                  float fraction)
Description copied from class: ComponentEffect
This method is called during each frame of the transition animation, prior to the call to paint(). 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.

Overrides:
setup in class ComponentEffect
Parameters:
g2d - the Graphics2D destination for this rendering
fraction - The fraction of elapsed time in this animation