Class: UMLAdapter

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

Overview

DiagAdapter for UML diagrams.

Instance Method Summary

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.

Parameters:

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

See also:

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

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.

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

TODO: Support various children on parameter class_child_id.

Add a Generalization link for class parent.

Parameters:

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

# (void) add_subsumption_childs(class_parent_id)

TODO: Support various children on parameter class_child_id.

Get the selected child for building Generalization link.

Parameters:

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

# (void) delete_class(class_id)

Delete a class/generalization/association from the diagram.

Parameters:

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

# (void) edit_covering(gen_id, covering)

# (void) edit_disjoint(gen_id, disjoint)

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: