private Paint createGraphicInnerShadowGradient(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[]{graphicInnerShadow1,graphicInnerShadow2,graphicInnerShadow3,graphicInnerShadow4});
}

private Paint createGraphicInnerShadowGradient ( 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 [ ] { graphicInnerShadow1 , graphicInnerShadow2 , graphicInnerShadow3 , graphicInnerShadow4 } ) ; }
create the gradient for the " x " inner shadow .
