public class TextElement extends Element
Constructor and Description |
---|
TextElement(String id) |
TextElement(String id,
String text) |
TextElement(String id,
String language_code,
String text) |
Modifier and Type | Method and Description |
---|---|
String |
get_lang() |
String |
get_text() |
void |
set_language_text(String language_code,
String text)
Set the language and the text of the TextElement
|
void |
set_text(String text)
Set the text of the TextElement
|
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_params, get_t, set_appears, set_id, set_movement, set_named_color, set_rgb_color, set_size, set_t_params, set_t
public TextElement(String id)
id
- public void set_language_text(String language_code, String text)
language_code
- text
- public String get_lang()
public void set_text(String text)
text
- public String get_text()
public Boolean validate_element()
validate_element
in class Element
public JSONObject to_json() throws JSONException
Element
to_json
in class Element
JSONException