com.sun.lwuit.animations
Interface Animation

All Known Implementing Classes:
BrowserComponent, Button, Calendar, CheckBox, ComboBox, CommonTransitions, Component, ComponentGroup, Container, ContainerList, DefaultListCellRenderer, Dialog, EmbeddedContainer, Form, HTMLComponent, Label, List, MediaComponent, MenuBar, PeerComponent, RadioButton, Slider, Spinner, StaticAnimation, TabbedPane, Table, Tabs, TextArea, TextField, Timeline, Transition, Transition3D, Tree, VideoComponent, VirtualKeyboard

public interface Animation

Allows any object to react to events and draw an animation at a fixed interval. All animation methods are executed on the EDT. For simplicities sake all components are animatable, however no animation will appear unless it is explicitly registered into the parent form. In order to stop animation callbacks the animation must be explicitly removed from the form (notice that this differs from removing the component from the form!).


Method Summary
 boolean animate()
          Allows the animation to reduce "repaint" calls when it returns false.
 void paint(Graphics g)
          Draws the animation, within a component the standard paint method would be invoked since it bares the exact same signature.
 

Method Detail

animate

boolean animate()
Allows the animation to reduce "repaint" calls when it returns false. It is called once for every frame. Frames are defined by the Display class.

Returns:
true if a repaint is desired or false if no repaint is necessary

paint

void paint(Graphics g)
Draws the animation, within a component the standard paint method would be invoked since it bares the exact same signature.

Parameters:
g - graphics context