Effects : Movie FX in swing
Apply movie special effects to your component ... just for fun or for status report . For instance, animate hidden parts of your user interface, let end-users understand what your application wants.
// Each ZComponent have the same ZEffect API
ZButton button = new ZButton("Fade on mouseOut");
buttonA.addEffect(new Fade(100), Effect.MouseOverEvent);
buttonB.addEffect(new AnimatedFade(100, 0, 1000), Effect.ShowEvent);
//----------- two effects on the same panel.
panel.addEffect(new CompoundEffect(
new BorderEffect(false),
new DisabledEffect(DisabledEffect.RASTER_BLUR)),
Effect.MouseOverEvent);
Live customization
Wingz effects are plugins that can appled on any component. These effects can be linked to some events or permently added to a component. Effect can be a killer feature to you application cause it can boost your ergonomy.
Animated or not
Every effect can be animated or not.Wingz effects comes with a general framework for animated effects. With it you can do smooth transition between two states. Use all static effects in a dynamic way.
FadeEffect
With this effects you can simply partially or completly fade a component. For example you can use this effect to show that a panel is not active or become active.
PainterEffect
This one let you paint a different background binded to an event. By using Wingz painters you can paint a gradient or an image in your component.For example, you can draw a cross on your component for say to you user "no it's not valid !"
MoveEffect
Change the position of own of you component when an action occured. For example you can use this effect for show the movment of a product that goes in a cart.
BorderEffect
Change the border dynamicly to show a state information.
SoundEffect
Easily play sound on important events.
Image Effect
Apply visual effect on your ImageIcon or image.This API can be usefull to synamicly change an image during a process.
- ColorLayer : Draws an image with a color layer.
- fade : fade your image.
- GrayScale : draw your image in grayscale.
- Rotate : Rotate your image
- Shadow : Draw a precise shadow on your image.
- Zoom : Zoom your image.
|