Class NewTextureLoader

java.lang.Object
  |
  +--com.sun.j3d.utils.image.TextureLoader
        |
        +--NewTextureLoader

public class NewTextureLoader
extends com.sun.j3d.utils.image.TextureLoader


Fields inherited from class com.sun.j3d.utils.image.TextureLoader
GENERATE_MIPMAP
 
Constructor Summary
NewTextureLoader(java.awt.Image image)
          Constructs a NewTextureLoader object loading the specified iamge in default (RGBA) format.
NewTextureLoader(java.awt.Image image, int flags)
          Constructs a NewTextureLoader object loading the specified image and option flags in the default (RGBA) format.
NewTextureLoader(java.awt.Image image, java.lang.String format)
          Constructs a NewTextureLoader object loading the specified file using the specified format.
NewTextureLoader(java.awt.Image image, java.lang.String format, int flags)
          Constructs a NewTextureLoader object loading the specified file with specified format and flags.
NewTextureLoader(java.lang.String fname)
          Constructs a NewTextureLoader object loading the specified file using the default format (RGBA).
NewTextureLoader(java.lang.String fname, int flags)
          Constructs a NewTextureLoader object loading the specified file with the specified flags.
NewTextureLoader(java.lang.String fname, java.lang.String format)
          Constructs a NewTextureLoader object loading the specified file using the specified format.
NewTextureLoader(java.lang.String fname, java.lang.String format, int flags)
          Constructs a NewTextureLoader object loading the specified file using the specified format and flags.
NewTextureLoader(java.net.URL url)
          Constructs a NewTextureLoader object loading the specified URL using the default format.
NewTextureLoader(java.net.URL url, int flags)
          Constructs a NewTextureLoader object loading the specified URL using the specified flags.
NewTextureLoader(java.net.URL url, java.lang.String format)
          Constructs a NewTextureLoader object loading the specified URL using the specified format.
NewTextureLoader(java.net.URL url, java.lang.String format, int flags)
          Constructs a NewTextureLoader object loading the specified URL using the specified format and flags.
 
Method Summary
static java.awt.Component getImageObserver()
          Retreve the object used as the image observer for NewTextureLoader objects.
static void setImageObserver(java.awt.Component imageObserver)
          Specify an object to server as the image observer.
 
Methods inherited from class com.sun.j3d.utils.image.TextureLoader
getImage, getScaledImage, getScaledImage, getTexture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewTextureLoader

public NewTextureLoader(java.awt.Image image)
Constructs a NewTextureLoader object loading the specified iamge in default (RGBA) format. The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
image - the image object to load

NewTextureLoader

public NewTextureLoader(java.awt.Image image,
                        int flags)
Constructs a NewTextureLoader object loading the specified image and option flags in the default (RGBA) format. The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
image - the image object to load
flags - the flags to use in construction (e.g. generate mipmap)

NewTextureLoader

public NewTextureLoader(java.awt.Image image,
                        java.lang.String format)
Constructs a NewTextureLoader object loading the specified file using the specified format. The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
image - the image object to load
format - specificaiton of which channels to use (e.g. RGB)

NewTextureLoader

public NewTextureLoader(java.awt.Image image,
                        java.lang.String format,
                        int flags)
Constructs a NewTextureLoader object loading the specified file with specified format and flags. The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
image - the image object to load
format - specificaiton of which channels to use (e.g. RGB)
flags - the flags to use in construction (e.g. generate mipmap)

NewTextureLoader

public NewTextureLoader(java.lang.String fname)
Constructs a NewTextureLoader object loading the specified file using the default format (RGBA). The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
fname - the name of the file to load

NewTextureLoader

public NewTextureLoader(java.lang.String fname,
                        int flags)
Constructs a NewTextureLoader object loading the specified file with the specified flags. The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
fname - the name of the file to load
flags - the flags to use in construction (e.g. generate mipmap)

NewTextureLoader

public NewTextureLoader(java.lang.String fname,
                        java.lang.String format)
Constructs a NewTextureLoader object loading the specified file using the specified format. The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
fname - the name of the file to load
format - specificaiton of which channels to use (e.g. RGB)

NewTextureLoader

public NewTextureLoader(java.lang.String fname,
                        java.lang.String format,
                        int flags)
Constructs a NewTextureLoader object loading the specified file using the specified format and flags. The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
fname - the name of the file to load
format - specificaiton of which channels to use (e.g. RGB)
flags - the flags to use in construction (e.g. generate mipmap)

NewTextureLoader

public NewTextureLoader(java.net.URL url)
Constructs a NewTextureLoader object loading the specified URL using the default format. The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
url - specifies the URL of the image to load

NewTextureLoader

public NewTextureLoader(java.net.URL url,
                        int flags)
Constructs a NewTextureLoader object loading the specified URL using the specified flags. The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
url - specifies the URL of the image to load
flags - the flags to use in construction (e.g. generate mipmap)

NewTextureLoader

public NewTextureLoader(java.net.URL url,
                        java.lang.String format)
Constructs a NewTextureLoader object loading the specified URL using the specified format. The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
url - specifies the URL of the image to load
format - specificaiton of which channels to use (e.g. RGB)

NewTextureLoader

public NewTextureLoader(java.net.URL url,
                        java.lang.String format,
                        int flags)
Constructs a NewTextureLoader object loading the specified URL using the specified format and flags. The an image observer must be set using the setImageObserver() method before using this constructor.
Parameters:
url - specifies the URL of the image to load
format - specificaiton of which channels to use (e.g. RGB)
flags - the flags to use in construction (e.g. generate mipmap)
Method Detail

setImageObserver

public static void setImageObserver(java.awt.Component imageObserver)
Specify an object to server as the image observer. Use this method once before constructing any texture loaders.
Parameters:
imageObserver - the object to be used in subsequent NewTextureLoader constuctions

getImageObserver

public static java.awt.Component getImageObserver()
Retreve the object used as the image observer for NewTextureLoader objects. Use this method when the image observer is needed.
Returns:
the object used in as the image observer in subsequent NewTextureLoader constuctions