Class: UMLAdapter
Defined in: | web-src/coffee/gui/uml/adapter.coffee |
Inherits: | gui.DiagAdapter |
Overview
DiagAdapter for UML diagrams.
Instance Method Summary
- # (void) show_class_info(class_id)
- # (void) show_gen_info(gen_id)
- # (void) show_assoc_info(assoc_id)
- # (void) add_object_type(hash_data) Add a class to the diagram.
- # (void) add_attribute(class_id, name, type)
- # (void) add_relationship(class_a_id, class_b_id, name = null, mult = null, roles = null, assoc_t) Add a simple association from A to B.
- # (void) add_association_class(class_a_id, class_b_id, name = null, mult = null, roles = null, assoc_t)
- # (void) add_relationship_aux(class_a_id, name = null, mult = null, roles = null, with_class = null)
- # (void) add_subsumption(class_parent_id, class_child_id, disjoint = false, covering = false) Add a Generalization link for class parent.
- # (void) add_subsumption_childs(class_parent_id) Get the selected child for building Generalization link.
- # (void) delete_class(class_id) Delete a class/generalization/association from the diagram.
- # (void) edit_covering(gen_id, covering)
- # (void) edit_disjoint(gen_id, disjoint)
Constructor Details
#
(void)
constructor(diag, paper)
Instance Method Details
#
(void)
show_class_info(class_id)
#
(void)
show_gen_info(gen_id)
#
(void)
show_assoc_info(assoc_id)
#
(void)
add_object_type(hash_data)
Add a class to the diagram.
#
(void)
add_attribute(class_id, name, type)
#
(void)
add_relationship(class_a_id, class_b_id, name = null, mult = null, roles = null, assoc_t)
Add a simple association from A to B. Then, set the selection state for restoring the interface.
Examples:
Getting a classid
< graph.getCells()[0].id
> "5777cd89-45b6-407e-9994-5d681c0717c1"
#
(void)
add_association_class(class_a_id, class_b_id, name = null, mult = null, roles = null, assoc_t)
#
(void)
add_relationship_aux(class_a_id, name = null, mult = null, roles = null, with_class = null)
#
(void)
add_subsumption(class_parent_id, class_child_id, disjoint = false, covering = false)
Add a Generalization link for class parent.
#
(void)
add_subsumption_childs(class_parent_id)
Get the selected child for building Generalization link.
#
(void)
delete_class(class_id)
Delete a class/generalization/association from the diagram.
#
(void)
edit_covering(gen_id, covering)
#
(void)
edit_disjoint(gen_id, disjoint)