Class: DiagAdapter
Defined in: | web-src/coffee/gui/diagadapter.coffee |
Overview
Adapter for providing proper parameters to the diagram Model and its interaction with the interface.
Direct Known Subclasses
Instance Method Summary
- # (void) set_paper(paper)
- # (void) add_attribute(hash_data) Add an attribute
- # (void) add_object_type(hash_data)
- # (void) add_relationship(class_a_id, class_b_id, name = null, mult = null, roles = null)
- # (void) add_relationship_aux(class_a_id, name = null, mult = null, roles = null, with_class = null)
- # (void) add_relationship_attr(class_id, attribute_id, name = null)
- # (void) add_subsumption(class_id, isa_id, name)
- # (void) edit_class_name(class_id, name) Change a class name identified by its classid.
- # (void) delete_class(class_id) Delete a class from the diagram.
- # (void) show_class_info(class_id)
- # (void) show_gen_info(gen_id)
- # (void) show_assoc_info(assoc_id)
- # (void) import_jsonstr(jsonstr) Import a JSON string.
- # (void) import_json(json_obj) Import a JSON object.
- # (void) reset_all() Reset all the diagram and the input forms.
- # (string) diag_to_json() Generate a JSON string representation of the current diagram.
- # (void) set_unsatisfiable(classes_list) Show these classes as unsatisifable.
- # (void) set_satisfiable(classes_list) Show these classes as satisifable.
- # (void) set_inferredSubs(isubs_list)
- # (void) set_inferredCards(icards_list)
Constructor Details
#
(void)
constructor(diag, paper)
Instance Method Details
#
(void)
set_paper(paper)
#
(void)
add_attribute(hash_data)
Add an attribute
#
(void)
add_object_type(hash_data)
#
(void)
add_relationship(class_a_id, class_b_id, name = null, mult = null, roles = null)
#
(void)
add_relationship_aux(class_a_id, name = null, mult = null, roles = null, with_class = null)
#
(void)
add_relationship_attr(class_id, attribute_id, name = null)
#
(void)
add_subsumption(class_id, isa_id, name)
#
(void)
edit_class_name(class_id, name)
Change a class name identified by its classid.
Examples:
Getting a classid
< graph.getCells()[0].id
> "5777cd89-45b6-407e-9994-5d681c0717c1"
#
(void)
delete_class(class_id)
Delete a class from the diagram.
#
(void)
show_class_info(class_id)
#
(void)
show_gen_info(gen_id)
#
(void)
show_assoc_info(assoc_id)
#
(void)
import_jsonstr(jsonstr)
Import a JSON string.
This will not reset the current diagram, just add more elements.
GUIIMPL Subclasses
This messages does not need to be reimplemented in GUIIMPL subclasses
#diag_to_json().
#
(void)
import_json(json_obj)
Import a JSON object.
This will not reset the current diagram, just add more elements.
Same as import_jsonstr, but it accept a JSON object as parameter.
#
(void)
reset_all()
Reset all the diagram and the input forms.
Reset the diagram and the "OWLlink Insert" input field.
#
(string)
diag_to_json()
Generate a JSON string representation of the current diagram.
#
(void)
set_unsatisfiable(classes_list)
Show these classes as unsatisifable.
#
(void)
set_satisfiable(classes_list)
Show these classes as satisifable.
#
(void)
set_inferredSubs(isubs_list)
#
(void)
set_inferredCards(icards_list)