NodeView Class
Item Index
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
The initialization method of this object.
Parameters:
-
A
Mapmap of parameters
loadSvgEvents
()
This method manages the events for the SVG representation.
render
()
This method draws this module (eg. inject the DOM and elements).
translate
(
-
The
-
The
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
Floatx position
-
The
Floaty position
updatePosition
()
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.