View RSS Feed

Java AWT

Getting Started with Graphics

Rate this Entry
by , 03-04-2012 at 04:46 PM (838 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.

Name:  1.JPG
Views: 117
Size:  15.4 KB
Graphics

Submit "Getting Started with Graphics" to Facebook Submit "Getting Started with Graphics" to Digg Submit "Getting Started with Graphics" to del.icio.us Submit "Getting Started with Graphics" to StumbleUpon Submit "Getting Started with Graphics" to Google

Tags: graphics Add / Edit Tags
Categories
Graphics

Comments