// Calculate shade bounds and paint it
final int x = actualPaintLeft ? 0 : -shadeWidth * 2;
final int width = w + ( actualPaintLeft ? 0 : shadeWidth * 2 ) + ( actualPaintRight ? 0 : shadeWidth * 2 );
final int y = paintTop ? 0 : -shadeWidth * 2;
final int height = h + ( paintTop ? 0 : shadeWidth * 2 ) + ( paintBottom ? 0 : shadeWidth * 2 );
shade.paintIcon ( g2d, x, y, width, height );
}
}
/**
* Paints decoration background.