public Shape createInternalDropShadowRounded ( final int x , final int y , final int w , final int h ) { final double radius = h / 2 ; final int right = x + w ; final double bottom = y + radius ; path . reset ( ) ; // Upper edge. path . moveTo ( x , bottom ) ; path . quadTo ( x , y , x + radius , y ) ; path . lineTo ( right - radius , y ) ; path . quadTo ( right , y , right , bottom ) ; // Lower edge. path . lineTo ( right - 1 , bottom ) ; path . quadTo ( right - 2 , y + 2 , right - radius - 1 , y + 2 ) ; path . lineTo ( x + radius + 1 , y + 2 ) ; path . quadTo ( x + 2 , y + 2 , x + 1 , bottom ) ; path . closePath ( ) ; return path ; }
Return a path for a rounded internal drop shadow . This is used for progress bar tracks and search fields .