addComments method

void addComments(
  1. ForceDirectedVertex v
)

Find any associated objects to be positioned along with the LayoutVertex#node.

This method is called for each vertex in the network, when #comments is true. The standard behavior is to look for Nodes whose Part#category is "Comment" and that refer to the LayoutVertex#node. By default this method will not be called unless you set #comments to true.

You may want to override this method in order to customize how any associated objects are found and how a new ForceDirectedVertex and ForceDirectedEdge may be added to the network to represent the (balloon?) comment. This method sets the new vertex's ForceDirectedVertex#charge to the value of #defaultCommentElectricalCharge, and sets the new edge's ForceDirectedEdge#length to the value of #defaultCommentSpringLength. @expose @param {ForceDirectedVertex} v @since 1.3

Implementation

void addComments(_i3.ForceDirectedVertex v) {
  _i4.callMethod(
    this,
    'addComments',
    [v],
  );
}