Getting Started with Graphics
by, 03-04-2012 at 05:46 PM (733 Views)
The Java 2D API is considered to be a complex and powerful API which provides support to graphics. Just smaller feature sets are used by the Java 2D graphics, provided in class java.awt.graphics.
Graphic class is divided into 2 groups, as following.
- Draw & fill method: This makes you able to render the basic text shapes & images.
- Attributes setting method: Affects at filling appearance & drawing.
The setColor & setFont method are used to fill & draw images. Given below is the figure to best explain relevance to the graphic objects.