Package org.apache.pivot.wtk.effects
Class FadeTransition
- java.lang.Object
 - 
- org.apache.pivot.wtk.effects.Transition
 - 
- org.apache.pivot.wtk.effects.FadeTransition
 
 
 
- 
- Direct Known Subclasses:
 FadeWindowTransition
public class FadeTransition extends Transition
Fade transition class. 
- 
- 
Constructor Summary
Constructors Constructor Description FadeTransition(Component component, int duration, int rate) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetComponent()voidstart(TransitionListener transitionListener)Starts the transition.voidstop()Stops the transition running with no final update, and does not fire aTransitionListener.transitionCompleted(Transition)event.protected voidupdate()Called repeatedly while the transition is running to update the transition's state.- 
Methods inherited from class org.apache.pivot.wtk.effects.Transition
end, getCurrentTime, getDuration, getElapsedTime, getInterval, getPercentComplete, getRate, getStartTime, isRepeating, isReversed, isRunning, reverse, setDuration, setRate, setReversed, start, themeHasTransitionEnabled 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
FadeTransition
public FadeTransition(Component component, int duration, int rate)
 
 - 
 
- 
Method Detail
- 
getComponent
public Component getComponent()
 
- 
start
public void start(TransitionListener transitionListener)
Description copied from class:TransitionStarts the transition. CallsTransition.update()to establish the initial state and starts a timer that will repeatedly callTransition.update()at the current rate. The specifiedTransitionListenerwill be notified when the transition completes.- Overrides:
 startin classTransition- Parameters:
 transitionListener- The listener to get notified when the transition completes, ornullif no notification is necessary.
 
- 
stop
public void stop()
Description copied from class:TransitionStops the transition running with no final update, and does not fire aTransitionListener.transitionCompleted(Transition)event.- Overrides:
 stopin classTransition
 
- 
update
protected void update()
Description copied from class:TransitionCalled repeatedly while the transition is running to update the transition's state.- Specified by:
 updatein classTransition
 
 - 
 
 -