net.jbeans.j3d.util.texture
Class TextureLoader

java.lang.Object
  extended bycom.sun.j3d.utils.image.TextureLoader
      extended bynet.jbeans.j3d.util.texture.TextureLoader

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

generally describe TextureLoader in here

Version:
$Revision: 1.3 $
Author:
Masahiro Takatsuka (masa@jbeans.net)
See Also:
TextureLoader

Field Summary
 
Fields inherited from class com.sun.j3d.utils.image.TextureLoader
BY_REFERENCE, GENERATE_MIPMAP, Y_UP
 
Constructor Summary
TextureLoader(java.awt.Image image)
          Constructs a TextureLoader object loading the specified iamge in default (RGBA) format.
TextureLoader(java.awt.Image image, int flags)
          Constructs a TextureLoader object loading the specified image and option flags in the default (RGBA) format.
TextureLoader(java.awt.Image image, java.lang.String format)
          Constructs a TextureLoader object loading the specified file using the specified format.
TextureLoader(java.awt.Image image, java.lang.String format, int flags)
          Constructs a TextureLoader object loading the specified file with specified format and flags.
TextureLoader(java.lang.String fname)
          Constructs a TextureLoader object loading the specified file using the default format (RGBA).
TextureLoader(java.lang.String fname, int flags)
          Constructs a TextureLoader object loading the specified file with the specified flags.
TextureLoader(java.lang.String fname, java.lang.String format)
          Constructs a TextureLoader object loading the specified file using the specified format.
TextureLoader(java.lang.String fname, java.lang.String format, int flags)
          Constructs a TextureLoader object loading the specified file using the specified format and flags.
TextureLoader(java.net.URL url)
          Constructs a TextureLoader object loading the specified URL using the default format.
TextureLoader(java.net.URL url, int flags)
          Constructs a TextureLoader object loading the specified URL using the specified flags.
TextureLoader(java.net.URL url, java.lang.String format)
          Constructs a TextureLoader object loading the specified URL using the specified format.
TextureLoader(java.net.URL url, java.lang.String format, int flags)
          Constructs a TextureLoader 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 TextureLoader 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

TextureLoader

public TextureLoader(java.awt.Image image)
Constructs a TextureLoader 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

TextureLoader

public TextureLoader(java.awt.Image image,
                     int flags)
Constructs a TextureLoader 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)

TextureLoader

public TextureLoader(java.awt.Image image,
                     java.lang.String format)
Constructs a TextureLoader 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)

TextureLoader

public TextureLoader(java.awt.Image image,
                     java.lang.String format,
                     int flags)
Constructs a TextureLoader 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)

TextureLoader

public TextureLoader(java.lang.String fname)
Constructs a TextureLoader 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

TextureLoader

public TextureLoader(java.lang.String fname,
                     int flags)
Constructs a TextureLoader 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)

TextureLoader

public TextureLoader(java.lang.String fname,
                     java.lang.String format)
Constructs a TextureLoader 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)

TextureLoader

public TextureLoader(java.lang.String fname,
                     java.lang.String format,
                     int flags)
Constructs a TextureLoader 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)

TextureLoader

public TextureLoader(java.net.URL url)
Constructs a TextureLoader 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

TextureLoader

public TextureLoader(java.net.URL url,
                     int flags)
Constructs a TextureLoader 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)

TextureLoader

public TextureLoader(java.net.URL url,
                     java.lang.String format)
Constructs a TextureLoader 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)

TextureLoader

public TextureLoader(java.net.URL url,
                     java.lang.String format,
                     int flags)
Constructs a TextureLoader 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 TextureLoader constuctions

getImageObserver

public static java.awt.Component getImageObserver()
Retreve the object used as the image observer for TextureLoader objects. Use this method when the image observer is needed.

Returns:
the object used in as the image observer in subsequent TextureLoader constuctions


Copyright © 1995-2004 net.jbeans. All Rights Reserved.