de.javagl.swogl
Class SwoglComponents

java.lang.Object
  extended by de.javagl.swogl.SwoglComponents

public class SwoglComponents
extends java.lang.Object

Factory methods for creating SwoglComponents.


Method Summary
static SwoglComponent create(Geometry geometry, Texture texture, javax.swing.JComponent component)
          Create a new SwoglComponent that contains the given Swing component and consists of the given geometry and texture.
static SwoglComponent create(javax.swing.JComponent component)
          Creates a new SwoglComponent that contains the given Swing component.
static SwoglComponent create(javax.swing.JComponent component, int w, int h)
          Creates a new SwoglComponent that contains the given Swing component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static SwoglComponent create(javax.swing.JComponent component)
Creates a new SwoglComponent that contains the given Swing component. The geometry and texture of the SwoglComponent will have the size that is returned as the preferred size of the given component.

Parameters:
component - The component
Returns:
The SwoglComponent

create

public static SwoglComponent create(javax.swing.JComponent component,
                                    int w,
                                    int h)
Creates a new SwoglComponent that contains the given Swing component. The geometry and texture of the SwoglComponent will have the given size.

Parameters:
component - The component
w - The width
h - The height
Returns:
The SwoglComponent

create

public static SwoglComponent create(Geometry geometry,
                                    Texture texture,
                                    javax.swing.JComponent component)
Create a new SwoglComponent that contains the given Swing component and consists of the given geometry and texture.

Parameters:
geometry - The geometry
texture - The texture
component - The component
Returns:
The SwoglComponent