public class NumberElement extends Element
Constructor and Description |
---|
NumberElement(String id) |
NumberElement(String id,
Integer value) |
NumberElement(String id,
Integer value,
Integer width,
Integer height) |
Modifier and Type | Method and Description |
---|---|
HashMap<String,Object> |
get_t_params() |
Integer |
get_value() |
void |
set_t_params(HashMap<String,Object> t_params) |
void |
set_value(Integer value) |
JSONObject |
to_json()
The Element is converted to JSON format
|
Boolean |
validate_element() |
get_appears, get_color_info, get_id, get_kinetic_info, get_size_info, get_t, set_appears, set_id, set_movement, set_named_color, set_rgb_color, set_size, set_t
public NumberElement(String id)
id
- public HashMap<String,Object> get_t_params()
get_t_params
in class Element
public void set_t_params(HashMap<String,Object> t_params)
set_t_params
in class Element
t_params
- the type_params to setpublic void set_value(Integer value)
public Integer get_value()
public Boolean validate_element()
validate_element
in class Element
public JSONObject to_json() throws JSONException
Element
to_json
in class Element
JSONException