com.hdcookbook.grinxlet
Class XletDirector

java.lang.Object
  extended by com.hdcookbook.grin.Director
      extended by com.hdcookbook.grinxlet.XletDirector

public class XletDirector
extends Director

The director for the small xlet UI that manages test state using the popup menu.


Field Summary
 GrinXlet xlet
           
 
Constructor Summary
XletDirector(GrinXlet xlet)
           
 
Method Summary
 void debugLogHeartbeat()
           
 void framerateDown()
          Decreases the framerate
 void framerateUp()
          Increases the framerate
 boolean getDebugDraw()
           
 void initialize()
           
 void moveDebugLogDown()
           
 void moveDebugLogLeft()
           
 void moveDebugLogRight()
           
 void moveDebugLogUp()
           
 void notifyDestroyed()
          Notifies the director that the underlying show has been destroyed.
 void setDebugDraw(boolean value)
           
 void setFramerate()
           
 void setUIState()
          Sets the UI state to match the model.
 void skipDebugLogTo(int pos)
           
 
Methods inherited from class com.hdcookbook.grin.Director
getFeature, getNamedCommand, getPart, getSegment, getShow, notifyAssemblyPartSelected, notifyNextFrame, notifySegmentActivated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xlet

public GrinXlet xlet
Constructor Detail

XletDirector

public XletDirector(GrinXlet xlet)
Method Detail

notifyDestroyed

public void notifyDestroyed()
Notifies the director that the underlying show has been destroyed. This is called from the animation thread with the show lock held. If the director has acquired any resources, it should release them here.

Overrides:
notifyDestroyed in class Director

initialize

public void initialize()

setUIState

public void setUIState()
Sets the UI state to match the model.


setFramerate

public void setFramerate()

framerateUp

public void framerateUp()
Increases the framerate


framerateDown

public void framerateDown()
Decreases the framerate


getDebugDraw

public boolean getDebugDraw()

setDebugDraw

public void setDebugDraw(boolean value)

debugLogHeartbeat

public void debugLogHeartbeat()

skipDebugLogTo

public void skipDebugLogTo(int pos)

moveDebugLogLeft

public void moveDebugLogLeft()

moveDebugLogRight

public void moveDebugLogRight()

moveDebugLogUp

public void moveDebugLogUp()

moveDebugLogDown

public void moveDebugLogDown()