| 
SimJava  v2.0  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--eduni.simanim.Anim_param
An animation parameter, parameters are used to display data relating to its parent entity during an animation.
| Field Summary | |
static java.lang.String[] | 
enum_type
 | 
static int | 
HIDDEN
Display type: Don't display.  | 
static int | 
NAME
Display type: Show parameter's name only.  | 
static int | 
NAME_VALUE
Display type: Show both the parameter's name and its value.  | 
static int | 
STATE
Display type: Show as the entity's bitmap.  | 
static int | 
VALUE
Display type: Show value only.  | 
| Constructor Summary | |
Anim_param(java.lang.String name,
           int type,
           Param_type ptype)
Constructor, with co-ordinates defaulting to (0, 0).  | 
|
Anim_param(java.lang.String name,
           int type,
           Param_type ptype,
           int x,
           int y)
Constructor, with Param_type object and (x, y) co-ordinate.  | 
|
Anim_param(java.lang.String name,
           int type,
           java.lang.String value)
Constructor, with co-ordinates defaulting to (0, 0).  | 
|
Anim_param(java.lang.String name,
           int type,
           java.lang.String value,
           int x,
           int y)
Constructor, with (x, y) co-ordinate.  | 
|
| Method Summary | |
 int | 
get_intval()
Get integer value of parameter.  | 
 java.lang.String | 
get_value()
Get string value of parameter.  | 
 void | 
set_value(int val)
Set value of parameter to integer.  | 
 void | 
set_value(java.lang.String val)
Set value of parameter to string.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final int HIDDEN
public static final int STATE
public static final int VALUE
public static final int NAME
public static final int NAME_VALUE
public static final java.lang.String[] enum_type
| Constructor Detail | 
public Anim_param(java.lang.String name,
                  int type,
                  java.lang.String value,
                  int x,
                  int y)
name - The parameter's nametype - One of the display types abovevalue - The initial value of the parameterx - The X co-ordinate of the parameter relative to the left of
          its parent entity.y - The Y co-ordinate of the parameter relative to the top of
          its parent entity.
public Anim_param(java.lang.String name,
                  int type,
                  java.lang.String value)
name - The parameter's nametype - One of the display types abovevalue - The initial value of the parameter
public Anim_param(java.lang.String name,
                  int type,
                  Param_type ptype,
                  int x,
                  int y)
name - The parameter's nametype - One of the display types aboveptype - The parameter type objectx - The X co-ordinate of the parameter relative to the left of
          its parent entity.y - The Y co-ordinate of the parameter relative to the top of
          its parent entity.
public Anim_param(java.lang.String name,
                  int type,
                  Param_type ptype)
name - The parameter's nametype - One of the display types abovevalue - The initial value of the parameter| Method Detail | 
public void set_value(java.lang.String val)
val - The value of the parameterpublic void set_value(int val)
val - The value of the parameterpublic java.lang.String get_value()
public int get_intval()
  | 
SimJava  v2.0  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||