insertPoint method

void insertPoint(
  1. int argIndex,
  2. Coordinate coord,
  3. int onLocation
)

Implementation

void insertPoint(int argIndex, Coordinate coord, int onLocation) {
  Node n = nodes.addNodeFromCoordinate(coord);
  Label? lbl = n.getLabel();
  if (lbl == null) {
    n.label = new Label.args2(argIndex, onLocation);
  } else
    lbl.setLocationWithIndex(argIndex, onLocation);
}