Add a gradient definition to the Surface. Note that in some surface engines, adding
a gradient via this method will n...
Add a gradient definition to the Surface. Note that in some surface engines, adding
a gradient via this method will not take effect if the surface has already been rendered.
Therefore, it is preferred to pass the gradients as an item to the surface config, rather
than calling this method, especially if the surface is rendered immediately (e.g. due to
'renderTo' in its config).