Java Abstract Window Toolkit (AWT)
Paint attributes define fill pattern in Graphic2D rendering context. An objectís instance is created for setting the paint attributes which makes possible the implementation of the paint interface. setPaint method is called along with Graphic2D, as a parameter.
Paint interface is implemented by using these 3 classes. ColorTexturePaintGradientPaint
Create a GradientPaint by specifying. Beginning position/colorEnding position/color