Java DTV API 1.3
18-Nov-2009

com.sun.dtv.lwuit.animations
Interface Animation

All Known Implementing Classes:
AnimatedMatte, AWTComponent, Button, Calendar, CheckBox, ComboBox, CommonTransitions, Component, Container, DefaultListCellRenderer, Dialog, DTVContainer, Form, Label, List, MediaComponent, RadioButton, StaticAnimation, TabbedPane, TextArea, TextField, Transition

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.

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.


Java DTV API 1.3
18-Nov-2009

Copyright © 2008-2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.