com.cult3d
Class Cult

java.lang.Object
  |
  +--com.cult3d.Cult

public class Cult
extends java.lang.Object

This class provides a way to access static Cult3D methods.


Method Summary
static java.awt.Image createImage(java.awt.Image image)
          Creates an off-screen drawable copy from an Image.
static java.awt.Image createImage(int width, int height)
          Creates an off-screen drawable Image.
static java.awt.Image getImage(java.lang.String imageName)
          Gets an image from Cult3D.
static boolean isLoaded()
          Checks if everything is loaded.
static void showDocument(java.net.URL url)
          Replaces the Web page currently being viewed with the given URL.
static void showDocument(java.net.URL url, java.lang.String target)
          Requests that the browser or applet viewer show the Web page indicated by the url argument.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getImage

public static java.awt.Image getImage(java.lang.String imageName)
Gets an image from Cult3D. The image must be in gif or jpeg format and included in the Cult3D object as an resource.
Parameters:
imageName - Name of the resource in the Cult3D object.
Throws:
NameNotFoundException - for invalid name.

createImage

public static java.awt.Image createImage(int width,
                                         int height)
Creates an off-screen drawable Image. The resulting image is an instance of com.cult3d.TextureImage.
Parameters:
width - the specified width
height - the specified height
See Also:
TextureImage

createImage

public static java.awt.Image createImage(java.awt.Image image)
Creates an off-screen drawable copy from an Image. The resulting image is an instance of com.cult3d.TextureImage.
Parameters:
image - the image to create a copy from.
See Also:
TextureImage

isLoaded

public static boolean isLoaded()
Checks if everything is loaded.
Returns:
true if everything needed for Java is loaded.

showDocument

public static void showDocument(java.net.URL url)
Replaces the Web page currently being viewed with the given URL.
Parameters:
url - an absolute URL giving the location of the document.

showDocument

public static void showDocument(java.net.URL url,
                                java.lang.String target)
Requests that the browser or applet viewer show the Web page indicated by the url argument. The target argument indicates where to display the frame.
Parameters:
url - an absolute URL giving the location of the document.
target - a String indicating where to display the page.