org.xith3d.utility.events
Class WindowClosingRenderLoopEnder

java.lang.Object
  extended by org.xith3d.utility.events.WindowClosingRenderLoopEnder
All Implemented Interfaces:
WindowClosingListener

public class WindowClosingRenderLoopEnder
extends java.lang.Object
implements WindowClosingListener

This is the most common implementation of WindowClosingListener. It simply ends the RenderLoop when the Window is closed.


Constructor Summary
WindowClosingRenderLoopEnder(RenderLoop renderLoop)
           
WindowClosingRenderLoopEnder(RenderLoop renderLoop, Canvas3D canvas)
           
 
Method Summary
 void onWindowCloseRequested(Canvas3D canvas)
          This event is fired, if the user has requested the Canvas3D's parent window to be closed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowClosingRenderLoopEnder

public WindowClosingRenderLoopEnder(RenderLoop renderLoop)

WindowClosingRenderLoopEnder

public WindowClosingRenderLoopEnder(RenderLoop renderLoop,
                                    Canvas3D canvas)
Method Detail

onWindowCloseRequested

public void onWindowCloseRequested(Canvas3D canvas)
Description copied from interface: WindowClosingListener
This event is fired, if the user has requested the Canvas3D's parent window to be closed.

Specified by:
onWindowCloseRequested in interface WindowClosingListener
Parameters:
canvas - the Canvas3D, which's parent window is to be closed