|
SimJava 2.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAnim_param
public class Anim_param
An animation parameter, parameters are used to display data relating to its parent entity during an animation.
| Field Summary | |
|---|---|
static 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(String name,
int type,
Param_type ptype)
Constructor, with co-ordinates defaulting to (0, 0). |
|
Anim_param(String name,
int type,
Param_type ptype,
int x,
int y)
Constructor, with Param_type object and (x, y) co-ordinate. |
|
Anim_param(String name,
int type,
String value)
Constructor, with co-ordinates defaulting to (0, 0). |
|
Anim_param(String name,
int type,
String value,
int x,
int y)
Constructor, with (x, y) co-ordinate. |
|
| Method Summary | |
|---|---|
(package private) void |
draw(Graphics g)
|
int |
get_intval()
Get integer value of parameter. |
(package private) String |
get_name()
|
(package private) Param_type |
get_ptype()
|
(package private) int |
get_type()
|
String |
get_value()
Get string value of parameter. |
(package private) static int |
parseType(String type)
|
(package private) void |
set_parent(Anim_entity ent)
|
(package private) void |
set_position(int x,
int y)
|
(package private) void |
set_type(int type)
|
void |
set_value(int val)
Set value of parameter to integer. |
void |
set_value(String val)
Set value of parameter to string. |
(package private) void |
update_position()
|
| Methods inherited from class 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 String[] enum_type
| Constructor Detail |
|---|
public Anim_param(String name,
int type,
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(String name,
int type,
String value)
name - The parameter's nametype - One of the display types abovevalue - The initial value of the parameter
public Anim_param(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(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(String val)
val - The value of the parameterpublic void set_value(int val)
val - The value of the parameterpublic String get_value()
public int get_intval()
void set_type(int type)
void set_position(int x,
int y)
void set_parent(Anim_entity ent)
int get_type()
Param_type get_ptype()
String get_name()
static int parseType(String type)
void update_position()
void draw(Graphics g)
|
SimJava 2.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||