|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.objectxp.msg.ems.EMSElement
com.objectxp.msg.ems.EMSAnimation
public class EMSAnimation
This class represents a EMS Animation element. How the animation is displayed on the phone obviously depends on the size of the display and the type of phone. It is therefore important to verify the visual appearance of the animation on the actual target devices.
There are two types of EMS animations:
EMSMessage,
Serialized Form| Field Summary | |
|---|---|
static EMSAnimation |
ANGRY
Pre-defined animation: ANGRY |
static EMSAnimation |
CONFUSED
Pre-defined animation: CONFUSED |
static EMSAnimation |
CRYING
Pre-defined animation: CRYING |
static EMSAnimation |
DEVIL
Pre-defined animation: DEVIL |
static EMSAnimation |
GLAD
Pre-defined animation: GLAD |
static EMSAnimation |
GLASSES
Pre-defined animation: GLASSES |
static EMSAnimation |
INDIFFERENT
Pre-defined animation: INDIFFERENT |
static EMSAnimation |
IRONIC
Pre-defined animation: IRONIC |
static EMSAnimation |
LAUGHING
Pre-defined animation: LAUGHING |
static EMSAnimation |
LOVE
Pre-defined animation: LOVE |
static EMSAnimation |
SAD
Pre-defined animation: SAD |
static EMSAnimation |
SCEPTIC
Pre-defined animation: SCEPTIC |
static EMSAnimation |
TONGUE
Pre-defined animation: TONGUE |
static EMSAnimation |
WINKING
Pre-defined animation: WINKING |
static EMSAnimation |
WOW
Pre-defined animation: WOW |
| Constructor Summary | |
|---|---|
EMSAnimation(EMSPicture[] pics)
Construct a new user-defined EMS Animation. |
|
EMSAnimation(int number)
Construct a predefined EMS Animation. |
|
| Method Summary | |
|---|---|
int |
getPredefinedAnimation()
Gets the predefined EMS Animation number. |
EMSPicture[] |
getUserDefinedAnimation()
Gets the user defined EMS Animation. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final EMSAnimation IRONIC
public static final EMSAnimation GLAD
public static final EMSAnimation SCEPTIC
public static final EMSAnimation SAD
public static final EMSAnimation WOW
public static final EMSAnimation CRYING
public static final EMSAnimation WINKING
public static final EMSAnimation LAUGHING
public static final EMSAnimation INDIFFERENT
public static final EMSAnimation LOVE
public static final EMSAnimation CONFUSED
public static final EMSAnimation TONGUE
public static final EMSAnimation ANGRY
public static final EMSAnimation GLASSES
public static final EMSAnimation DEVIL
| Constructor Detail |
|---|
public EMSAnimation(EMSPicture[] pics)
throws java.lang.IllegalArgumentException
Animations are coded as 4 sequential pictures, with the first picture sent first.
For large animations, each picture in the animation must have the dimension 16 x 16 pixels, for small animations the dimension must be 8 x 8 pixels.
pics - an array containing exactly 4 EMSPictures of the same dimension
java.lang.IllegalArgumentException - if the parameter pics is null, or doesn't
contain exactly 4 EMSPicture objects
public EMSAnimation(int number)
throws java.lang.IllegalArgumentException
number - the number of the predefined animation
java.lang.IllegalArgumentException - if the number is lower than zero
or greater than 255| Method Detail |
|---|
public int getPredefinedAnimation()
public EMSPicture[] getUserDefinedAnimation()
public java.lang.String toString()
toString in class java.lang.Object
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||