org.xith3d.loop
Enum RenderLoop.StopOperation

java.lang.Object
  extended by java.lang.Enum<RenderLoop.StopOperation>
      extended by org.xith3d.loop.RenderLoop.StopOperation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RenderLoop.StopOperation>
Enclosing class:
RenderLoop

public static enum RenderLoop.StopOperation
extends java.lang.Enum<RenderLoop.StopOperation>

Use this enum for the setStopOperation() method.
It controls the RenderLoop's behavior when it gets stopped.

See Also:
RenderLoop.setStopOperation(StopOperation)

Enum Constant Summary
DESTROY
          When the RenderLoop stops, the destroy() method is called.
DESTROY_AND_EXIT
          When the RenderLoop stops, the destroy() method is called.
DO_NOTHING
          When the RenderLoop stops, it just stops and does nothing more.
EXIT
          When the RenderLoop stops, the exit() method is called.
 
Method Summary
static RenderLoop.StopOperation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RenderLoop.StopOperation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DO_NOTHING

public static final RenderLoop.StopOperation DO_NOTHING
When the RenderLoop stops, it just stops and does nothing more.
This is the default.


EXIT

public static final RenderLoop.StopOperation EXIT
When the RenderLoop stops, the exit() method is called.
The exit() method calls System.gc() and System.exit( 0 );


DESTROY

public static final RenderLoop.StopOperation DESTROY
When the RenderLoop stops, the destroy() method is called.
The destroy() method calls the destroy() method on each registered RenderEngine.

See Also:
RenderLoop.destroy()

DESTROY_AND_EXIT

public static final RenderLoop.StopOperation DESTROY_AND_EXIT
When the RenderLoop stops, the destroy() method is called.
The destroy() method calls the destroy() method on each registered RenderEngine. Then the exit() method is called, which calls System.gc() and System.exit( 0 );

See Also:
RenderLoop.destroy(), RenderLoop.exit()
Method Detail

values

public static RenderLoop.StopOperation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RenderLoop.StopOperation c : RenderLoop.StopOperation.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RenderLoop.StopOperation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null