question: private Shape createThumbShape ( int width , int height , boolean upper ) { Path2D path = new Path2D . Float ( ) ; if ( slider . getOrientation ( ) == JSlider . HORIZONTAL ) { float d = 0.5F * width ; path . moveTo ( d , 0 ) ; path . lineTo ( ( upper ? width : 0.0 ) , d ) ; path . lineTo ( ( upper ? width : 0.0 ) , height ) ; path . lineTo ( 0.5 * width , height ) ; } else { float d = 0.5F * height ; path . moveTo ( 0 , d ) ; path . lineTo ( d , ( upper ? height : 0.0 ) ) ; path . lineTo ( width , ( upper ? height : 0.0 ) ) ; path . lineTo ( height , 0.5 * height ) ; } path . closePath ( ) ; return path ; }
target:  Returns a Shape representing a thumb.