protected final LinearGradientPaint decodeGradient
 midpoints, Color
Given parameters for creating a LinearGradientPaint, this method will
create and return a linear gradient paint. One primary purpose for this
method is to avoid creating a LinearGradientPaint where the start and
end points are equal. In such a case, the end y point is slightly
increased to avoid the overlap.
Returns: a valid LinearGradientPaint. This method never returns null.
| || if |
midpoints array is null,
colors array is null,
| || if start and end points are the same points,
midpoints.length != colors.length,
colors is less than 2 in size,
midpoints value is less than 0.0 or greater than 1.0,
midpoints are not provided in strictly increasing order