Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: G (2D graphic library)

G is a generic graphics library built on top of Java 2D in order to make scene graph oriented 2D graphics available to client applications in a high level, easy to use way

Tutorial Details:

G Features

* Object oriented hierarchical scene graphs
* Layered graphics with visibility support
* Flexible 3D space world extents
* World and device coordinate support
* Powerful rendering style support
* Smart annotations
* Powerful object detection functions
* Extensible
* Interaction support
* Raster image support
* Embedded Swing component support
* Utilities for geometry generation and transformations
* Image export and printing support
* JDK 1.2, 1.3, 1.4 and 1.5 compatible
* Light weight (~80kB), self contained, simple to use
* Free, open source (LGPL), OSI certified

Create a GWindow as top level graphics node and link to a Swing panel. * Add a GScene which defines viewport and world extents. Build the graphics hierarchy by GObjects and add to the scene. GObjects consists of GSegments (polylines) and other GObjects. Rendering information is supplied by GStyle objects added to any level of the graphics. Annotations (GText), raster images (GImage) and AWT/Swing components (GComponent) are added to segments with specified position hints. Interactions are implemented through the GInteraction interface.

The graphics is double buffered to keep rendering smooth. The implementation makes heavy use of regions to keep track of objects and damage area in order to keep the rendering pipeline as efficient as possible.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
G (2D graphic library)

View Tutorial:
G (2D graphic library)

Related Tutorials:

Java decompilers compared - JavaWorld - July 1997
Java decompilers compared - JavaWorld - July 1997
 
Getting started with Java 2D - JavaWorld - July 1998
Getting started with Java 2D - JavaWorld - July 1998
 
Java Tip 90: Accelerate your GUIs - JavaWorld
Java Tip 90: Accelerate your GUIs - JavaWorld
 
Apple announces Java 2 plans at MacWorld
Apple announces Java 2 plans at MacWorld
 
Dynamic user interface is only skin deep - JavaWorld May 2000
Dynamic user interface is only skin deep - JavaWorld May 2000
 
Warning! Threading in a multiprocessor world - JavaWorld February 2001
Warning! Threading in a multiprocessor world - JavaWorld February 2001
 
Finalists announced for JavaWorld Editors' Choice Awards
Finalists announced for JavaWorld Editors' Choice Awards
 
Take control with the Proxy design pattern
Take control with the Proxy design pattern
 
A good article/untrapment about Runtime.exec
A good article/untrapment about Runtime.exec
 
Remote-control Java
Remote-control Java
 
replacing implementation inheritance by contract inheritance
replacing implementation inheritance by contract inheritance
 
Filtering and Transforming Digital Images
Filtering and Transforming Digital Images In this Issue Welcome to the Core Java Technologies Tech Tips for April 7, 2004. Here you\'ll get tips on using core Java technologies and APIs, such as those in Java 2 Platform, Standard Edition (J2SE).
 
Eye Of Newt - LDAP Editor
Eye Of Newt - LDAP Editor
 
An Intelligent Nim Computer Game, Part 1
An Intelligent Nim Computer Game, Part 1 In this article, you learn how to play Nim, and discover tools for creating an intelligent computer player. In the next article, you apply those tools to the creation of that player, while building console and G
 
Java 2D imaging for the Standard Widget Toolkit
Java 2D imaging for the Standard Widget Toolkit Bring the power of 2D imaging to your Eclipse plug-ins In this article, however, you'll learn how to have the best of both worlds. I'll demonstrate a simple technique that will allow you to paint Java
 
Java Mime Magic Library
Java Mime Magic Library jMimeMagic is a Java library for determining the MIME type of files or streams.
 
G (2D graphic library)
G is a generic graphics library built on top of Java 2D in order to make scene graph oriented 2D graphics available to client applications in a high level, easy to use way
 
FreeMarker FreeMarker 2.3.1 an open-source HTML template engine.
FreeMarker provides an easy way to get data from Java servlets into Web pages, and helps you keep graphic design separate from application logic. To use it, you encapsulate HTML in templates.
 
Buy Peanut 9.6 Linux in India from us. Peanut 9.6 distribution is available in India.
Buy Peanut 9.6 Linux in India from us. Peanut 9.6 distribution is available in India. Peanut 9.6 Linux Now Available Peanut 9.6 Linux CD It is a Linux OS (operating system), especially made for those new to Linux. This is the most POWERFUL and
 
Using MYSQL Database with JSP & Servlets.
Using MYSQL Database with JSP & Servlets. Using MYSQL Database with JSP & Servlets. MY SQL is a powerful RDBMS, which can handle large amount of data. And more interestingly it is free to use, except for some commercial use. you can download it
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.