Class: ORMAdapter
Defined in: | web-src/coffee/gui/diagadapter.coffee |
Inherits: | DiagAdapter |
Overview
DiagAdapter for ORM diagrams.
Instance Method Summary
- # (void) add_object_type(hash_data) Add a class to the diagram.
- # (void) add_relationship(class_a_id, class_b_id, name = null, mult = null) Add a simple association from A to B.
- # (void) add_subsumption(class_parent_id, class_child_id, disjoint = false, covering = false) Add a Generalization link and then set the selection state.
Inherited Method Summary
Methods inherited from
DiagAdapter
#set_paper #add_attribute #add_object_type #add_relationship #add_relationship_aux #add_relationship_attr #add_subsumption #edit_class_name #delete_class #show_class_info #show_gen_info #show_assoc_info #import_jsonstr #import_json #reset_all #diag_to_json #set_unsatisfiable #set_satisfiable #set_inferredSubs #set_inferredCards
Constructor Details
#
(void)
constructor(diag, paper)
Instance Method Details
#
(void)
add_object_type(hash_data)
Add a class to the diagram.
#
(void)
add_relationship(class_a_id, class_b_id, name = null, mult = null)
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_subsumption(class_parent_id, class_child_id, disjoint = false, covering = false)
Add a Generalization link and then set the selection state.