org.jbox2d.testbed.framework
Class TestbedModel

java.lang.Object
  extended by org.jbox2d.testbed.framework.TestbedModel

public class TestbedModel
extends java.lang.Object

Model for the testbed

Author:
Daniel

Nested Class Summary
 class TestbedModel.ListItem
           
static interface TestbedModel.TestChangedListener
           
 
Constructor Summary
TestbedModel()
           
 
Method Summary
 void addCategory(java.lang.String argName)
           
 void addTest(TestbedTest argTest)
           
 void addTestChangeListener(TestbedModel.TestChangedListener argListener)
           
 void clearTestList()
           
 float getCalculatedFps()
           
 boolean[] getCodedKeys()
          Gets the array of coded keys, index corresponding to the coded key value.
 javax.swing.DefaultComboBoxModel getComboModel()
           
 TestbedTest getCurrTest()
           
 int getCurrTestIndex()
           
 org.jbox2d.callbacks.DebugDraw getDebugDraw()
           
 boolean[] getKeys()
          Gets the array of keys, index corresponding to the char value.
 org.jbox2d.common.Vec2 getMouse()
           
 float getPanelWidth()
           
 TestbedTest getRunningTest()
           
 TestbedSettings getSettings()
           
 TestbedTest getTestAt(int argIndex)
           
 int getTestsSize()
           
 boolean isTestAt(int argIndex)
           
 void removeTestChangeListener(TestbedModel.TestChangedListener argListener)
           
 void setCalculatedFps(float calculatedFps)
           
 void setCurrTestIndex(int argCurrTestIndex)
           
 void setDebugDraw(org.jbox2d.callbacks.DebugDraw argDraw)
           
 void setMouse(org.jbox2d.common.Vec2 argMouse)
           
 void setPanelWidth(float panelWidth)
           
 void setRunningTest(TestbedTest runningTest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestbedModel

public TestbedModel()
Method Detail

setCalculatedFps

public void setCalculatedFps(float calculatedFps)

getCalculatedFps

public float getCalculatedFps()

setPanelWidth

public void setPanelWidth(float panelWidth)

getPanelWidth

public float getPanelWidth()

setDebugDraw

public void setDebugDraw(org.jbox2d.callbacks.DebugDraw argDraw)

getDebugDraw

public org.jbox2d.callbacks.DebugDraw getDebugDraw()

getCurrTest

public TestbedTest getCurrTest()

getMouse

public org.jbox2d.common.Vec2 getMouse()

setMouse

public void setMouse(org.jbox2d.common.Vec2 argMouse)

getKeys

public boolean[] getKeys()
Gets the array of keys, index corresponding to the char value.

Returns:

getCodedKeys

public boolean[] getCodedKeys()
Gets the array of coded keys, index corresponding to the coded key value.

Returns:

setCurrTestIndex

public void setCurrTestIndex(int argCurrTestIndex)

getCurrTestIndex

public int getCurrTestIndex()

setRunningTest

public void setRunningTest(TestbedTest runningTest)

getRunningTest

public TestbedTest getRunningTest()

addTestChangeListener

public void addTestChangeListener(TestbedModel.TestChangedListener argListener)

removeTestChangeListener

public void removeTestChangeListener(TestbedModel.TestChangedListener argListener)

addTest

public void addTest(TestbedTest argTest)

addCategory

public void addCategory(java.lang.String argName)

getTestAt

public TestbedTest getTestAt(int argIndex)

isTestAt

public boolean isTestAt(int argIndex)

clearTestList

public void clearTestList()

getTestsSize

public int getTestsSize()

getComboModel

public javax.swing.DefaultComboBoxModel getComboModel()

getSettings

public TestbedSettings getSettings()


Copyright © 2013. All Rights Reserved.