synergynetframework.jme.gfx.twod
Class ImageQuadFactory

java.lang.Object
  extended by synergynetframework.jme.gfx.twod.ImageQuadFactory

public class ImageQuadFactory
extends java.lang.Object

A factory for creating ImageQuad objects.


Field Summary
static int ALPHA_DISABLE
          The Constant ALPHA_DISABLE.
static int ALPHA_ENABLE
          The Constant ALPHA_ENABLE.
 
Constructor Summary
ImageQuadFactory()
           
 
Method Summary
static com.jme.scene.shape.Quad createQuadWithImage(java.lang.String name, float width, java.awt.Image img)
          Creates a new ImageQuad object.
static com.jme.scene.shape.Quad createQuadWithImageResource(java.lang.String name, float width, java.net.URL resource)
          Creates a new ImageQuad object.
static com.jme.scene.shape.Quad createQuadWithImageResource(java.lang.String name, float width, java.net.URL resource, int useAlpha)
          Creates a new ImageQuad object.
static com.jme.scene.shape.Quad createQuadWithTexture(java.lang.String name, float width, com.jme.image.Texture tex)
          Creates a new ImageQuad object.
static com.jme.scene.shape.Quad createQuadWithUncompressedImageResource(java.lang.String name, float width, java.net.URL resource, int useAlpha)
          Creates a new ImageQuad object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALPHA_DISABLE

public static final int ALPHA_DISABLE
The Constant ALPHA_DISABLE.

See Also:
Constant Field Values

ALPHA_ENABLE

public static final int ALPHA_ENABLE
The Constant ALPHA_ENABLE.

See Also:
Constant Field Values
Constructor Detail

ImageQuadFactory

public ImageQuadFactory()
Method Detail

createQuadWithImage

public static com.jme.scene.shape.Quad createQuadWithImage(java.lang.String name,
                                                           float width,
                                                           java.awt.Image img)
Creates a new ImageQuad object.

Parameters:
name - the name
width - the width
img - the img
Returns:
the quad

createQuadWithImageResource

public static com.jme.scene.shape.Quad createQuadWithImageResource(java.lang.String name,
                                                                   float width,
                                                                   java.net.URL resource)
Creates a new ImageQuad object.

Parameters:
name - the name
width - the width
resource - the resource
Returns:
the quad

createQuadWithImageResource

public static com.jme.scene.shape.Quad createQuadWithImageResource(java.lang.String name,
                                                                   float width,
                                                                   java.net.URL resource,
                                                                   int useAlpha)
Creates a new ImageQuad object.

Parameters:
name - the name
width - the width
resource - the resource
useAlpha - the use alpha
Returns:
the quad

createQuadWithTexture

public static com.jme.scene.shape.Quad createQuadWithTexture(java.lang.String name,
                                                             float width,
                                                             com.jme.image.Texture tex)
Creates a new ImageQuad object.

Parameters:
name - the name
width - the width
tex - the tex
Returns:
the quad

createQuadWithUncompressedImageResource

public static com.jme.scene.shape.Quad createQuadWithUncompressedImageResource(java.lang.String name,
                                                                               float width,
                                                                               java.net.URL resource,
                                                                               int useAlpha)
Creates a new ImageQuad object.

Parameters:
name - the name
width - the width
resource - the resource
useAlpha - the use alpha
Returns:
the quad