API Docs for:
Show:

NodeView Class

Defined in: view\NodeView.js:10
Module: modules

Methods

getFillColor

() String

This method returns the background colour of the node.

Returns:

String: An hexadecimal colour

getLabel

() String

This method returns the label of the node.

Returns:

String: The label of the node

getStrokeColor

() String

This method returns the border colour of the node.

Returns:

String: An hexadecimal colour

getTextFillColor

() String

This method returns the text colour of the node.

Returns:

String: An hexadecimal colour

initialize

(
  • A
)

Defined in view\NodeView.js:16

The initialization method of this object.

Parameters:

  • A Map

    map of parameters

loadSvgEvents

()

This method manages the events for the SVG representation.

render

()

Defined in view\NodeView.js:84

This method draws this module (eg. inject the DOM and elements).

translate

(
  • The
  • The
)

Defined in view\NodeView.js:67

This method is used to translate the position of the SVG representation of the node. The current position will be translated of (x,y) passed as parameters.

Parameters:

  • The Float

    x position

  • The Float

    y position

updatePosition

()

Defined in view\NodeView.js:55

This method is used to update the position of the SVG representation of the node. The new position will be (this.x,this.y) of this NodeView.