code: public void setWidth(double width) {
          switch (type) {
              case BOX:
                  box.setWidth(width);
                  box.setDepth(width);
                  break;
              case CYLINDER:
                  cylinder.setRadius(width * 0.5);
                  break;
              default:
                  break;
          }
      }
docs: Sets the width of the line.
  
  @param width The line width.