code: private void add(GeneralPath path) {
          double[] points = new double[6];
          for (org.openscience.cdk.renderer.elements.path.PathElement element : path.elements) {
              element.points(points);
              switch (element.type()) {
                  case MoveTo:
                  case LineTo:
                      add(points[0], points[1]);
                      break;
                  case QuadTo:
                      add(points[2], points[3]);
                      break;
                  case CubicTo:
                      add(points[4], points[5]);
                      break;
              }
          }
      }
docs: Add the provided general path to the bounding box.
  
  @param path general path