|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.lwuit.animations.Transition com.sun.lwuit.animations.Transition3D
public final class Transition3D
Transitions utilizing the M3G API for 3D effects, this transition requires M3G (JSR 184) support on the device in order to work properly. Currently none of these transitions work with dialogs or any component type that is not a form
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()
|
static Transition3D |
createCube(int duration,
boolean rotateRight)
Creates a cube rotation transition from the current form to the next form |
static Transition3D |
createFlyIn(int duration)
Creates a fly in transition object. |
static Transition3D |
createRotation(int duration,
boolean rotateRight)
Creates a rotation transition from the current form to the next form |
static Transition3D |
createStaticRotation(int duration,
boolean rotateRight)
Creates a rotation transition from the current form to the next dialog, in this rotation only the dialog will rotate and the form will remain static |
static Transition3D |
createSwingIn(int duration)
Creates a rotation transition from the top to the bottom giving a feeling of Swinging into place |
static Transition3D |
createSwingIn(int duration,
boolean topDown)
Creates a rotation transition from the top to the bottom giving a feeling of Swinging into place |
static Transition3D |
createVerticalCube(int duration,
boolean rotateDown)
Creates a cube rotation transition from the current form to the next form |
void |
initTransition()
Callback thats invoked before a transition begins, the source form may be null for the first form in the application. |
boolean |
isHighQualityMode()
High quality mode renders the transition using smoother graphics but can take a whole lot more memory per texture and bitmap resulting in a likely out of memory error on high resolution/low memory devices with complex UI elements. |
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 |
setHighQualityMode(boolean highQualityMode)
High quality mode renders the transition using smoother graphics but can take a whole lot more memory per texture and bitmap resulting in a likely out of memory error on high resolution/low memory devices with complex UI elements. |
static void |
setMaxTextureDimension(int size)
Allows performance/memory sensitive devices to define a maximum size for the texture thus increasing performance on the expense of quality. |
Methods inherited from class com.sun.lwuit.animations.Transition |
---|
cleanSource, copy, getDestination, getSource, init |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void cleanup()
Transition
cleanup
in class Transition
public static void setMaxTextureDimension(int size)
size
- public static Transition3D createRotation(int duration, boolean rotateRight)
duration
- duration in milliseconds of the transitionrotateRight
- indicates rotating towards the right side or the left side true == right
public static Transition3D createStaticRotation(int duration, boolean rotateRight)
duration
- duration in milliseconds of the transitionrotateRight
- indicates rotating towards the right side or the left side true == right
public static Transition3D createSwingIn(int duration)
duration
- duration in milliseconds of the transition
public static Transition3D createSwingIn(int duration, boolean topDown)
duration
- duration in milliseconds of the transitiontopDown
- indicates rotating downwards or upwards
public static Transition3D createCube(int duration, boolean rotateRight)
duration
- duration in milliseconds of the transitionrotateRight
- indicates rotating towards the right side or the left side true == right
public static Transition3D createVerticalCube(int duration, boolean rotateDown)
duration
- duration in milliseconds of the transitionrotateDown
- indicates rotating towards the upper side when true
public static Transition3D createFlyIn(int duration)
duration
- duration in milliseconds of the transition
public Transition copy()
public boolean animate()
Animation
Display
class.
animate
in interface Animation
animate
in class Transition
public void paint(Graphics g)
Animation
paint
in interface Animation
paint
in class Transition
g
- graphics contextpublic void initTransition()
Transition
initTransition
in class Transition
public boolean isHighQualityMode()
public void setHighQualityMode(boolean highQualityMode)
highQualityMode
- indicates whether this is the high quality mode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |