Fill Patterns
by , 03-06-2012 at 08:02 PM (452 Views)
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.
- Color
- TexturePaint
- GradientPaint
Create a GradientPaint by specifying.
- Beginning position/color
- Ending position/color
Proportionally, gradient change takes place from 1 color to other, with line which connects 2 positions.









Email Blog Entry
Size Reduced for Images in PDF &...
05-15-2013, 05:53 PM in Java Software