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;
}

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 ; }
return a path for a discrete slider thumb ' s concentric sections .
