Home arrow Java arrow Getting Started with Java 2D
JAVA

Getting Started with Java 2D


Drawing or Graphics APIs form an integral part of any language. They let you access the host operating system's GUI services. They are needed not only for implementing and rendering custom GUI controls and components for a standalone system; they also provide for non-GUI control based applications such as image manipulation, graph rendering functions and so on. Among current languages almost all provide drawing APIs. Java is no exception.

Author Info:
By: A.P.Rajshekhar
Rating: 2 stars2 stars2 stars2 stars2 stars / 3
May 08, 2007
TABLE OF CONTENTS:
  1. · Getting Started with Java 2D
  2. · Two-dimensional drawing
  3. · Image Processing
  4. · Using Java 2D API Step By Step

print this article
SEARCH DEVARTICLES

Getting Started with Java 2D
(Page 1 of 4 )

Java provides the Drawing APIs in the form of packages which are placed under the name Java 2D API. In this discussion I will focus on the basics of Java 2D API. I will discuss the whys and wherefores of the API, and enumerate the steps for using Java 2D API. In the second part of this article (which will appear tomorrow), I will focus on an example that demonstrates the various aspects of Java 2D. That's the outline for this discussion.

Java 2D API: What is it?

By definition Java 2D API is "a set of classes for advanced 2D graphics and imaging, encompassing line art, text, and images in a single comprehensive model providing extensive support for image compositing and alpha channel images, a set of classes to provide accurate color space definition and conversion, and a rich set of display-oriented imaging operators." The definition itself provides us with the types of functionalities provided by Java 2D. These functionalities can be divided into two major categories:

  1. Two-dimensional drawing
  2. Image processing

While the former deals exclusively with drawing (either on components or images), the latter is for dealing with images. Now let's look at the functionalities provided by each of them.


blog comments powered by Disqus
JAVA ARTICLES

- Java Too Insecure, Says Microsoft Researcher
- Google Beats Oracle in Java Ruling
- Deploying Multiple Java Applets as One
- Deploying Java Applets
- Understanding Deployment Frameworks
- Database Programming in Java Using JDBC
- Extension Interfaces and SAX
- Entities, Handlers and SAX
- Advanced SAX
- Conversions and Java Print Streams
- Formatters and Java Print Streams
- Java Print Streams
- Wildcards, Arrays, and Generics in Java
- Wildcards and Generic Methods in Java
- Finishing the Project: Java Web Development ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials