org.xith3d.loop
Class CanvasFPSListener

java.lang.Object
  extended by org.xith3d.loop.TitleFPSListener
      extended by org.xith3d.loop.CanvasFPSListener
All Implemented Interfaces:
ConsciousFPSListener, FPSListener

public class CanvasFPSListener
extends TitleFPSListener

This FPSListener prints the cought FPS to the Canvas3D's title. This is of course only visible in windowed mode.


Constructor Summary
CanvasFPSListener(Canvas3D canvas)
           
 
Method Summary
protected  java.lang.String getLimitedString()
          
protected  boolean isLimited()
          
protected  void onDetachedFromRenderLoop()
          This is called when the listener has been detaced from teh RenderLoop.
protected  void setTitle(java.lang.String title)
          
 
Methods inherited from class org.xith3d.loop.TitleFPSListener
getBaseTitle, getDynamicTitlePart, getRenderLoop, onFPSCountIntervalHit, setBaseTitle, setRenderLoop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CanvasFPSListener

public CanvasFPSListener(Canvas3D canvas)
Method Detail

onDetachedFromRenderLoop

protected final void onDetachedFromRenderLoop()
This is called when the listener has been detaced from teh RenderLoop.

Specified by:
onDetachedFromRenderLoop in class TitleFPSListener

isLimited

protected boolean isLimited()

Overrides:
isLimited in class TitleFPSListener

getLimitedString

protected java.lang.String getLimitedString()

Overrides:
getLimitedString in class TitleFPSListener

setTitle

protected void setTitle(java.lang.String title)

Specified by:
setTitle in class TitleFPSListener