code: @Override
      public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) {
          GeneralPath p = GraphicsUtils.createPolygon(xPoints, yPoints, nPoints, 
                  false);
          draw(p);
      }
docs: Draws the specified multi-segment line using the current
  {@code paint} and {@code stroke}.
  
  @param xPoints  the x-points.
  @param yPoints  the y-points.
  @param nPoints  the number of points to use for the polyline.