Class: ORMFactory

Defined in: web-src/coffee/model/orm/ormfactory.coffee
Inherits: model.Factory

Overview

ORM Factory for creating JointJS shapes representing a primitive in its plugins.

Instance Method Summary

Constructor Details

# (void) constructor()

Instance Method Details

~ (void) create_class(class_name, css_class = null)

Returns:

  • joint.shapes.uml.Class

Overloads:

~ (void) create_class(class_name, css_class = null)

@param [hash] css_class A CSS class definition in a Javascript hash. See the JointJS documentation and demos.

# (joint.dia.Link) create_association(class_a_id, class_b_id, name = null, css_links = null, mult = null, roles = null)

Create an association links.

Parameters:

  • mult ( array ) The multiplicity strings.
  • roles ( array ) An array of two strings with the roles names.

Returns:

  • joint.dia.Link

# (joint.shapes.uml.Generalization) create_generalization(class_a_id, class_b_id, css_links = null, disjoint = false, covering = false)

Parameters:

  • css_links ( Hash ) A Hash representing the CSS. See JointJS documentation for the attrs attribute.
  • disjoint ( Boolean ) Draw a "disjoint" legend.
  • covering ( Boolean ) Draw a "covering" legend.

Returns:

  • joint.shapes.uml.Generalization

# (void) create_association_class(class_name, css_class = null)

Create an association class.

See also:

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: