| net.mygwt.ui.client.fx.FX net.mygwt.ui.client.fx.FXStyle
FXStyle | public class FXStyle extends FX (Code) | | Effect for changing a single css style property for a given element.
This code is based on code from the MooTools Project by Valerio Proietti.
- Events:
- EffectStart : (source)
Fires after a effect is started.
- EffecCancel : (source)
Fires after an effect has been cancelled.
- EffecComplete : (source)
Fires after an effect has been completed.
|
Constructor Summary | |
public | FXStyle(Element element) Creates a new instance. |
Method Summary | |
public void | blink() Blinks the element. | public void | fadeIn() Fades the element in. | public void | fadeOut() Fades out the element. | public void | fadeToggle() Fades the element in or out. | public void | move(int x, int y) Moves a element to a new location. | public void | size(int width, int height) Changes the size of the element. | public void | slideIn(int dir) Slides the element in. | public void | slideOut(int dir) Slides the element out. | public void | start(String style, double from, double to) Creates and starts a new effect. | public void | zoom(int x, int y, int width, int height) Moves and sizes the element. |
elem | protected Element elem(Code) | | |
FXStyle | public FXStyle(Element element)(Code) | | Creates a new instance.
Parameters: element - the animation element |
blink | public void blink()(Code) | | Blinks the element.
|
fadeIn | public void fadeIn()(Code) | | Fades the element in.
|
fadeOut | public void fadeOut()(Code) | | Fades out the element.
|
fadeToggle | public void fadeToggle()(Code) | | Fades the element in or out.
|
move | public void move(int x, int y)(Code) | | Moves a element to a new location.
Parameters: x - the end x coordinate Parameters: y - the end y coordinate |
size | public void size(int width, int height)(Code) | | Changes the size of the element.
Parameters: width - the new width Parameters: height - the new height |
slideIn | public void slideIn(int dir)(Code) | | Slides the element in.
Parameters: dir - the direction |
slideOut | public void slideOut(int dir)(Code) | | Slides the element out.
Parameters: dir - the direction |
start | public void start(String style, double from, double to)(Code) | | Creates and starts a new effect.
Parameters: style - the css style being modified Parameters: from - the start value Parameters: to - the end value |
zoom | public void zoom(int x, int y, int width, int height)(Code) | | Moves and sizes the element.
Parameters: x - the new x coordinate Parameters: y - the new y coordinate Parameters: width - the new width Parameters: height - the new height |
|
|