net.sf.j3d.threeD.raytracer.surfaceUI
Class SurfaceUIFactory

java.lang.Object
  extended by net.sf.j3d.threeD.raytracer.surfaceUI.SurfaceUIFactory

public class SurfaceUIFactory
extends Object

The SurfaceUIFactory class provides static methods for creating SurfaceUI instances.

Author:
Mike Murray

Nested Class Summary
static class SurfaceUIFactory.SurfaceUIImpl
           
 
Method Summary
static AbstractSurfaceUI createSurfaceUI(AbstractSurface s)
           
static AbstractSurfaceUI createSurfaceUI(int nameIndex)
          Creates a new Surface implementation of the type given by the specified index into the array returned by the getSurfaceTypeNames method.
static String[] getSurfaceTypeNames()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSurfaceUI

public static AbstractSurfaceUI createSurfaceUI(AbstractSurface s)
Parameters:
s - AbstractSurface object to wrap.
Returns:
An AbstractSurfaceUI implementation that wraps the AbstractSurface specified.

createSurfaceUI

public static AbstractSurfaceUI createSurfaceUI(int nameIndex)
Creates a new Surface implementation of the type given by the specified index into the array returned by the getSurfaceTypeNames method.

Parameters:
nameIndex - Index into array given by getSurfaceTypeNames that corresponds to the Surface object to construct.
Returns:
An AbstractSurfaceUI implementation that wraps the surface specified.

getSurfaceTypeNames

public static String[] getSurfaceTypeNames()
Returns:
An array containing the surface type names in order.