|
Glg Toolkit | ||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
Description
| Interface Summary | |
|---|---|
| GlgCustomDrawListener | |
| GlgErrorHandler | |
| GlgHListener | |
| GlgInputListener | |
| GlgReadyListener | |
| GlgSelectListener | |
| GlgTraceListener | |
| GlgVListener | |
Glg Toolkit: Standard and Extended API.
The GlgObject class and several Glg bean classes are the main classes of the GLG package. There are also a few utility classes (GlgPoint, GlgCube, GlgTraceData, etc.) which provide some convenient functionality. The rest of the classes extend the generic GlgObject class providing specific functionality of graphical objects available in the GLG Toolkit. These classes are mostly for internal use. The only time they are used in an application is when their constructors are invoked to create various GLG objects (i.e. GlgArc, GlgPolygon, etc.) using the Extended API.
Glg bean classes are used for embedding GLG drawings into a Java application, in which case the GLG bean is used as a container which loads and displays a GLG drawing and provides programmatic access to the GLG objects in the drawing.
The Toolkit provides several types of the Glg beans. GlgBean is an AWT bean that can be used both as a bean and an applet. The GlgJBean is a heavy-weight Swing-based bean that may also be used as a bean or an applet (JApplet). The GlgJLWBean is a Swing-based light-weight bean. There are also custom versions of these beans (GlgCustomBean, etc.) that allow using custom drawings from the GLG jar file as well as browsing custom properties of the drawings in an IDE environment.
The GlgObject class is a generic GLG superclass that provides API methods for all GLG objects. It provides an application with a way to create and manipulate individual objects directly, without a need to create a Glg bean.
The Toolkit provides two levels of programming interface: the Standard and Extended API. The Standard API provides methods for loading the drawing created in the Graphics Builder, displaying and updating it with dynamic data, as well as handling user interaction (selecting objects with the mouse, pressing buttons, etc.)
The Extended API provides methods for creating objects programmatically, as well as methods for extended object manipulation (adding or deleting objects at run time, dragging objects with the mouse, traversing the object hierarchy, querying a list of object resources, etc.), supplying an application with all the functionality available in the Graphics Builder at run-time.
The GLG Standard and Extended API methods are implemented on both the Glg bean and GlgObject levels. The GlgObject class provides access to the API methods of individual objects, while the Glg bean classes (GlgBean, GlgJBean, GlgJLWBean, etc.) implement the same set of methods at the bean level and provide a centralized way to invoke API methods for any GLG object rendered inside the bean.
|
Glg Toolkit | ||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||