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

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

public abstract class ComponentImageEffect
extends ComponentEffect

Abstract class that contains the logic for rendering an image of the component during the transition, rather than rendering the component itself.


Field Summary
protected  java.awt.Image targetImage
          The image that will be rendered during the transition.
 
Fields inherited from class org.zilonis.tool.ext.aerith.effects.ComponentEffect
componentImage, end, height, renderComponent, start, width, x, y
 
Constructor Summary
ComponentImageEffect()
           
 
Method Summary
 void paint(java.awt.Graphics2D g2d)
          Copies the image into the given Graphics object
 
Methods inherited from class org.zilonis.tool.ext.aerith.effects.ComponentEffect
getComponent, getComponentImage, getEnd, getStart, setComponentImage, setComponentStates, setEnd, setStart, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetImage

protected java.awt.Image targetImage
The image that will be rendered during the transition. This image must be created in subclasses prior to the call to paint.

Constructor Detail

ComponentImageEffect

public ComponentImageEffect()
Method Detail

paint

public void paint(java.awt.Graphics2D g2d)
Copies the image into the given Graphics object

Overrides:
paint in class ComponentEffect
Parameters:
g2d - The Graphics2D destination for this rendering. Note that the state of this Graphics2D object is affected by the previous call to setup so there may be no more need to perturb the graphics state any more; you may simply want to render the component as appropriate.