code: public void setLineDistanceWidth(int lineDistanceWidth) {
          if (divLine.isAttached()) {
              divLine.setWidth(lineDistanceWidth + "px");
          } else {
              divLine.addAttachHandler(event -> divLine.setWidth(lineDistanceWidth + "px"));
          }
      }
docs: Will set the distance width of the step line from another step.