|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.dtv.lwuit.animations.Transition
com.sun.dtv.lwuit.animations.CommonTransitions
public final class CommonTransitions
Contains common transition animations including the following.
Instances of this class are created using factory methods.
Field Summary | |
---|---|
static int |
SLIDE_HORIZONTAL
Slide the transition horizontally. |
static int |
SLIDE_VERTICAL
Slide the transition vertically. |
Fields inherited from interface com.sun.dtv.ui.Animated |
---|
ALTERNATING, LOOP, REPEATING |
Method Summary | |
---|---|
boolean |
animate()
Allows the animation to reduce "repaint" calls when it returns false. |
void |
cleanup()
Optional operation to cleanup the garbage left over by a running transition. |
Transition |
copy()
Copies a transitions. |
static CommonTransitions |
createEmpty()
Creates an empty transition that does nothing. |
static CommonTransitions |
createFade(int duration)
Creates a transition for fading a form in while fading out the original form. |
static CommonTransitions |
createSlide(int type,
boolean forward,
int duration)
Creates a slide transition with the given duration and direction. |
static CommonTransitions |
createSlide(int type,
boolean forward,
int duration,
boolean drawDialogMenu)
Creates a slide transition with the given duration and direction. |
Motion |
getMotion()
Motion represents the physical movement within a transition, it can be replaced by the user to provide a more appropriate physical feel. |
void |
initTransition()
Callback thats invoked before a transition begins, the source form may be null for the first form in the application. |
void |
paint(Graphics g)
Draws the animation, within a component the standard paint method would be invoked since it bares the exact same signature. |
void |
setMotion(Motion motion)
Motion represents the physical movement within a transition, it can be replaced by the user to provide a more appropriate physical feel. |
Methods inherited from class com.sun.dtv.lwuit.animations.Transition |
---|
getAnimationMode, getDelay, getDestination, getPosition, getRepetitionMode, getSource, init, isRunning, jumpTo, setAnimationMode, setDelay, setRepetitionMode, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SLIDE_HORIZONTAL
createSlide(int, boolean, int)
,
Constant Field Valuespublic static final int SLIDE_VERTICAL
createSlide(int, boolean, int)
,
Constant Field ValuesMethod Detail |
---|
public static CommonTransitions createEmpty()
public static CommonTransitions createSlide(int type, boolean forward, int duration)
type
- type can be either vertically or horizontally, which means
the movement direction of the transitionforward
- forward is a boolean value, represent the directions of
switching forms, for example for a horizontally type, true means
horizontally movement to right.duration
- represent the time the transition should take in millisecond
public static CommonTransitions createSlide(int type, boolean forward, int duration, boolean drawDialogMenu)
type
- type can be either vertically or horizontally, which means
the movement direction of the transitionforward
- forward is a boolean value, represent the directions of
switching forms, for example for a horizontally type, true means
horizontally movement to right.duration
- represent the time the transition should take in milliseconddrawDialogMenu
- indicates that the menu of the dialog should be kept during
a slide transition. This is only relevant for dialog in/out transitions.
public static CommonTransitions createFade(int duration)
duration
- represent the time the transition should take in millisecond
public void initTransition()
Transition
initTransition
in class Transition
public boolean animate()
Animation
animate
in interface Animation
animate
in class Transition
public void paint(Graphics g)
Animation
paint
in interface Animation
paint
in class Transition
public void cleanup()
Transition
cleanup
in class Transition
public Motion getMotion()
setMotion(com.sun.dtv.lwuit.animations.Motion)
public void setMotion(Motion motion)
motion
- new instance of the motion class that will be used by the transitiongetMotion()
public Transition copy()
Transition
copy
in class Transition
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |