code: public Shape createSliderThumbDiscrete(final int x, final int y, final int w, final int h, final CornerSize size) {
          final double topArc     = size.getRadius(w, h);
          final double bottomArcH = size == CornerSize.INTERIOR ? 0 : 1;
          final double bottomArcW = 3;
  
          path.reset();
          path.moveTo(x, y + topArc);
          path.quadTo(x, y, x + topArc, y);
          path.lineTo(x + w - topArc, y);
          path.quadTo(x + w, y, x + w, y + topArc);
          path.lineTo(x + w, y + h / 2.0);
          path.quadTo(x + w - bottomArcW, y + h - bottomArcH, x + w / 2.0, y + h);
          path.quadTo(x + bottomArcW, y + h - bottomArcH, x, y + h / 2.0);
          path.closePath();
  
          return path;
      }
docs: Return a path for a discrete slider thumb's concentric sections.
  
  @param  x    the X coordinate of the upper-left corner of the section
  @param  y    the Y coordinate of the upper-left corner of the section
  @param  w    the width of the section
  @param  h    the height of the section
  @param  size the CornerSize representing the rounding amount for the
  section
  
  @return a path representing the shape.