| |
|
| java.lang.Object net.mygwt.ui.client.util.Observable net.mygwt.ui.client.fx.FX
All known Subclasses: net.mygwt.ui.client.fx.FXStyles, net.mygwt.ui.client.fx.FXStyle,
FX | public class FX extends Observable (Code) | | Base class for animation effects.
This code is based on code from the MooTools Project by Valerio Proietti.
- Events:
- EffectStart : (source this)
Fires after an effect is started.
- EffecCancel : (source this)
Fires after an effect has been cancelled.
- EffecComplete : (source this)
Fires after an effect has been completed
This class is partially based on the Fx package in the MooTools framework, see
http://mootools.net.
|
Field Summary | |
public int | duration The duration of the effect in ms. | protected Effect[] | effects | public int | fps The frames per second for the transition. | public boolean | hideOnComplete true to hide the element after the effect using the css
'display' attribute. | protected boolean | running | protected Timer | timer | public Transition | transition The effect transition. | public boolean | wait To wait or not to wait for a current transition to end before running
another of the same instance. |
duration | public int duration(Code) | | The duration of the effect in ms. Default value is 500.
|
fps | public int fps(Code) | | The frames per second for the transition. Default is 50.
|
hideOnComplete | public boolean hideOnComplete(Code) | | true to hide the element after the effect using the css
'display' attribute.
|
running | protected boolean running(Code) | | |
timer | protected Timer timer(Code) | | |
transition | public Transition transition(Code) | | The effect transition. Default values is Transition.LINEAR;
|
wait | public boolean wait(Code) | | To wait or not to wait for a current transition to end before running
another of the same instance. Default value is true .
|
addEffectListener | public void addEffectListener(EffectListener listener)(Code) | | Adds a listener to be notified of effect events.
Parameters: listener - the listener to be added |
cancel | public void cancel()(Code) | | Cancels the animation.
|
compute | protected double compute(double from, double to)(Code) | | |
getEffects | public Effect[] getEffects()(Code) | | Returns the current effects.
the effect array |
isRunning | public boolean isRunning()(Code) | | Returns true if any effects are running.
the running state |
onComplete | protected void onComplete()(Code) | | |
onStart | protected void onStart()(Code) | | |
removeEffectListener | public void removeEffectListener(EffectListener listener)(Code) | | Removes a previously added effect listener.
Parameters: listener - the listener to be removed |
start | public void start(Effect effect)(Code) | | Runs the effect.
Parameters: effect - the effect to be run |
start | public void start(Effect[] effects)(Code) | | Runs the list of effects.
Parameters: effects - the effects to be run |
step | protected void step()(Code) | | |
stop | public void stop()(Code) | | Stops the animation.
|
|
|
|