org.jdesktop.animation.transitions.effects
Class FadeOut

java.lang.Object
  extended by org.jdesktop.animation.transitions.Effect
      extended by org.jdesktop.animation.transitions.effects.Fade
          extended by org.jdesktop.animation.transitions.effects.FadeOut

public class FadeOut
extends Fade

Simple subclass of Fade effect that will fade a component from an existing start state to nothing.


Constructor Summary
FadeOut()
           
FadeOut(ComponentState start)
          Creates a new instance of FadeOut with the given start state.
 
Method Summary
 void cleanup(org.jdesktop.animation.timing.Animator animator)
          Effect subclasses that create temporary objects for the transition (such as in the init() method) should override this method and clean up those resources.
 void init(org.jdesktop.animation.timing.Animator animator, Effect parentEffect)
           
 
Methods inherited from class org.jdesktop.animation.transitions.effects.Fade
setOpacity, setup
 
Methods inherited from class org.jdesktop.animation.transitions.Effect
getComponent, getComponentImage, getEnd, getRenderComponent, getStart, paint, setBounds, setBounds, setComponentImage, setComponentStates, setEnd, setHeight, setLocation, setRenderComponent, setStart, setWidth, setX, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FadeOut

public FadeOut()

FadeOut

public FadeOut(ComponentState start)
Creates a new instance of FadeOut with the given start state.

Parameters:
start - The ComponentState at the beginning of the transition; this is what we are fading (from this starting representation into nothing).
Method Detail

init

public void init(org.jdesktop.animation.timing.Animator animator,
                 Effect parentEffect)
Overrides:
init in class Effect

cleanup

public void cleanup(org.jdesktop.animation.timing.Animator animator)
Description copied from class: Effect
Effect subclasses that create temporary objects for the transition (such as in the init() method) should override this method and clean up those resources. For example, TimingTarget e.g., PropertySetter) objects added to Animator should be removed after the transition to avoid leaking resources that may otherwise be retained by those objects.

Overrides:
cleanup in class Effect