g2d.fillRoundRect ( shadeWidth, shadeWidth, width - shadeWidth * 2, width - shadeWidth * 2, round * 2, round * 2 );
g2d.dispose ();
// Creating nine-patch icon
final NinePatchIcon ninePatchIcon = NinePatchIcon.create ( shade );
ninePatchIcon.addHorizontalStretch ( 0, shadeWidth + inner, true );
ninePatchIcon.addHorizontalStretch ( shadeWidth + inner + 1, width - shadeWidth - inner - 1, false );
ninePatchIcon.addHorizontalStretch ( width - shadeWidth - inner, width, true );
ninePatchIcon.addVerticalStretch ( 0, shadeWidth + inner, true );
ninePatchIcon.addVerticalStretch ( shadeWidth + inner + 1, width - shadeWidth - inner - 1, false );
ninePatchIcon.addVerticalStretch ( width - shadeWidth - inner, width, true );