public class EMSAnimation extends EMSElement
There are two types of EMS animations:
EMSMessage
,
Serialized FormModifier and Type | Field and Description |
---|---|
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 and Description |
---|
EMSAnimation(EMSPicture[] pics)
Construct a new user-defined EMS Animation.
|
EMSAnimation(int number)
Construct a predefined EMS Animation.
|
Modifier and Type | Method and Description |
---|---|
int |
getPredefinedAnimation()
Gets the predefined EMS Animation number.
|
EMSPicture[] |
getUserDefinedAnimation()
Gets the user defined EMS Animation.
|
java.lang.String |
toString() |
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
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 dimensionjava.lang.IllegalArgumentException
- if the parameter pics is null, or doesn't
contain exactly 4 EMSPicture
objectspublic EMSAnimation(int number) throws java.lang.IllegalArgumentException
number
- the number of the predefined animationjava.lang.IllegalArgumentException
- if the number is lower than zero
or greater than 255public int getPredefinedAnimation()
public EMSPicture[] getUserDefinedAnimation()
public java.lang.String toString()
toString
in class java.lang.Object
object XP, Inc. © 2000-2013. All rights reserved object XP