All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.hermetica.magician.GLComponentFactory
java.lang.Object
   |
   +----com.hermetica.magician.GLComponentFactory

  Summary

public class  GLComponentFactory
     extends java.lang.Object
{
          // Constructors 1
     public GLComponentFactory();

          // Methods 12
     public static final GLComponent createGLComponent();
     public static final GLComponent createGLComponent(GLComponent);
     public static final GLComponent createGLComponent(GLComponent, GLContext);
     public static GLComponent createGLComponent(GLComponent, GLContext, int, int);
     public static final GLComponent createGLComponent(GLComponent, GLContext, Dimension);
     public static final GLComponent createGLComponent(GLComponent, int, int);
     public static final GLComponent createGLComponent(GLComponent, Dimension);
     public static final GLComponent createGLComponent(GLContext);
     public static final GLComponent createGLComponent(GLContext, int, int);
     public static final GLComponent createGLComponent(GLContext, Dimension);
     public static final GLComponent createGLComponent(int, int);
     public static final GLComponent createGLComponent(Dimension);

}

This class instantiates GLComponent objects tailored to the requirements that you give it and the JVM/AWT implementation you are currently executing Magician applications on. For example, Sun and Microsoft's AWT implementations for Magician are incompatible, but this class will hide the differences for you ensuring your applications work on all platforms without any code changes.

Version:
$Id: GLComponentFactory.java,v 1.2 1998/10/02 01:57:21 descarte Exp descarte $
Author:
Alligator Descartes

See Also: GLComponent, GLContext




  Constructors

· GLComponentFactory

Summary  |  Top

   public GLComponentFactory() 

Default constructor



  Methods

· createGLComponent

Summary  |  Top
   public static final GLComponent createGLComponent() 

Creates a new GLComponent object with the default dimensions of 100x100

Returns:
A new GLComponent object


· createGLComponent

Summary  |  Top
   public static final GLComponent createGLComponent(GLComponent component) 

Creates a new GLComponent object with the default dimensions of 100x100 and is set to share the display lists and texture objects of the given component.

Parameter Description
component Another component whose texture objects and display lists will be shared

Returns:
A new GLComponent object


· createGLComponent

Summary  |  Top
   public static final GLComponent createGLComponent(GLContext context) 

Creates a new GLComponent object with the default dimensions of 100x100 and the given customized OpenGL rendering context

Parameter Description
context The pre-allocated OpenGL rendering context

Returns:
A new GLComponent object


· createGLComponent

Summary  |  Top
   public static final GLComponent createGLComponent(GLComponent component, 
                                                     GLContext context) 

Creates a new GLComponent object with the default dimensions of 100x100 and the given customized OpenGL rendering context and the given component whose display lists and texture objects will be shared.

Parameter Description
component The component whose texture objects and display lists will be shared
context The pre-allocated OpenGL rendering context

Returns:
A new GLComponent object


· createGLComponent

Summary  |  Top
   public static final GLComponent createGLComponent(GLComponent component, 
                                                     GLContext context, 
                                                     Dimension dim) 

Creates a new GLComponent object with the given dimensions and the given customized OpenGL rendering context and the given component whose display lists and texture objects will be shared.

Parameter Description
component The component whose texture objects and display lists will be shared
context The pre-allocated OpenGL rendering context
dim The dimensions of the component

Returns:
A new GLComponent object


· createGLComponent

Summary  |  Top
   public static final GLComponent createGLComponent(int width, 
                                                     int height) 

Creates a new GLComponent object with the given dimensions

Parameter Description
width The width of the component
height The height of the component

Returns:
A new GLComponent object


· createGLComponent

Summary  |  Top
   public static final GLComponent createGLComponent(Dimension dim) 

Creates a new GLComponent object with the given dimensions

Parameter Description
dim The dimensions of the component

Returns:
A new GLComponent object


· createGLComponent

Summary  |  Top
   public static final GLComponent createGLComponent(GLContext context, 
                                                     Dimension dim) 

Creates a new GLComponent object with the given dimensions and the pre-created rendering context

Parameter Description
context The pre-created OpenGL rendering context
dim The dimensions of the component

Returns:
A new GLComponent object


· createGLComponent

Summary  |  Top
   public static final GLComponent createGLComponent(GLContext context, 
                                                     int width, 
                                                     int height) 

Creates a new GLComponent object with the given dimensions and the pre-created rendering context

Parameter Description
context The pre-created OpenGL rendering context
width The width of the component
height The height of the component

Returns:
A new GLComponent object


· createGLComponent

Summary  |  Top
   public static final GLComponent createGLComponent(GLComponent component, 
                                                     int width, 
                                                     int height) 

Creates a new GLComponent object with the given dimensions and sharing the display lists and texture objects of the given component

Parameter Description
component The component whose display lists and texture objects are to be shared
width The width of the component
height The height of the component

Returns:
A new GLComponent object


· createGLComponent

Summary  |  Top
   public static final GLComponent createGLComponent(GLComponent component, 
                                                     Dimension dim) 

Creates a new GLComponent object with the given dimensions and the display lists and texture objects of the given component

Parameter Description
context The component whose display lists and texture objects are to be shared
dim The dimensions of the component

Returns:
A new GLComponent object


· createGLComponent

Summary  |  Top
   public static GLComponent createGLComponent(GLComponent component, 
                                               GLContext context, 
                                               int width, 
                                               int height) 

Creates a new GLComponent object with the given dimensions and the display lists and texture objects of the given component not to mention using the pre-created OpenGL rendering context

Parameter Description
component The component whose display lists and texture objects are to be shared
context The pre-created OpenGL rendering context
width The width of the component
height The height of the component

Returns:
A new GLComponent object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7