private Paint createGraphicDropShadowGradient ( Shape s ) { Rectangle2D b = s . getBounds2D ( ) ; float midX = ( float ) b . getCenterX ( ) ; float y1 = ( float ) b . getMinY ( ) ; float y2 = ( float ) b . getMaxY ( ) ; return createGradient ( midX , y1 , midX , y2 , new float [ ] { 0f , 0.43f , 0.57f , 1f } , new Color [ ] { graphicDropShadow1 , graphicDropShadow2 , graphicDropShadow3 , graphicDropShadow4 } ) ; }
Create the gradient for the x drop shadow .