public void setCornerColor ( int index , Color color ) { if ( ! isGradation ( ) ) { for ( int i = 0 ; i < 4 ; i ++ ) { cornerColor [ i ] = new RGBColor ( 0.0 , 0.0 , 0.0 ) ; cornerColor [ i ] = this . fillColor ; } setGradation ( true ) ; } cornerColor [ index ] = color ; }
Sets the color of a corner for gradation .