Class: EERAdapter
Defined in: | web-src/coffee/gui/eer/adapter.coffee |
Inherits: | gui.DiagAdapter |
Overview
DiagAdapter for ERD diagrams.
Instance Method Summary
- # (void) add_attribute(hash_data)
- # (void) add_object_type(hash_data) Add an Entity to the diagram.
- # (void) add_relationship(class_a_id, class_b_id, name = null, mult = null, roles = null) Add a simple relationships from A to B.
- # (void) add_relationship_attr(class_id, attribute_id, name = null)
- # (void) add_subsumption(class_parent_id, class_child_id, disjoint = false, covering = false) Add Isa links and then set the selection state.
- # (void) delete_attr(attr_id) Delete a class from the diagram.
Constructor Details
#
(void)
constructor(diag, paper)
Instance Method Details
#
(void)
add_attribute(hash_data)
#
(void)
add_object_type(hash_data)
Add an Entity to the diagram.
#
(void)
add_relationship(class_a_id, class_b_id, name = null, mult = null, roles = null)
Add a simple relationships 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_relationship_attr(class_id, attribute_id, name = null)
#
(void)
add_subsumption(class_parent_id, class_child_id, disjoint = false, covering = false)
Add Isa links and then set the selection state.
#
(void)
delete_attr(attr_id)
Delete a class from the diagram.