Class: EERAdapter

Defined in: web-src/coffee/gui/eer/adapter.coffee
Inherits: gui.DiagAdapter

Overview

DiagAdapter for ERD diagrams.

Instance Method Summary

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.

Parameters:

  • hash_data ( Hash ) data information for creating the Class. Use name, attribs and methods keys.

See also:

# (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"

Parameters:

  • class_a_id ( string )
  • class_b_id ( string )
  • name ( string ) optional. The association name.
  • mult ( array ) optional. An array of two string with the cardinality from class and to class b.
  • roles ( array ) optional.

# (void) add_relationship_attr(class_id, attribute_id, name = null)

# (void) add_subsumption(class_parent_id, class_child_id, disjoint = false, covering = false)

TODO: Support various children on parameter class_child_id.

Add Isa links and then set the selection state.

Parameters:

  • class_parent_id ( string ) The parent class Id.
  • class_child_id ( string ) The child class Id.

# (void) delete_attr(attr_id)

Delete a class from the diagram.

Parameters:

  • class_id ( string ) a String with the class Id.

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: