BasicGradientPainter.java | Class | A Gradient based Painter that uses GradientPaint to paint the gradient.
Simply specify the GradientPaint to use.
In order for resizing to work properly with GradientPaint
it is necessary that the various control points used in
these paints be specified in such a manner that they can be reliably resized.
For example, BasicGradientPainter takes GradientPaints who's point1 and point2
properties are specified between 0 and 1, representing at what percentage of
the distance from the origin the gradient begins and ends. |