Class TestbedModel
java.lang.Object
de.pirckheimer_gymnasium.jbox2d.testbed.framework.TestbedModel
Model for the testbed
- Author:
- Daniel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategory(String argName) voidaddTest(TestbedTest argTest) voidaddTestChangeListener(TestbedModel.TestChangedListener argListener) voidfloatboolean[]Gets the array of coded keys, index corresponding to the coded key value.intboolean[]getKeys()Gets the array of keys, index corresponding to the char value.getPanel()getTestAt(int argIndex) intbooleanisTestAt(int argIndex) voidremoveTestChangeListener(TestbedModel.TestChangedListener argListener) voidsetCalculatedFps(float calculatedFps) voidsetCurrTestIndex(int argCurrTestIndex) voidsetDebugDraw(DebugDraw argDraw) voidsetImplSpecificHelp(List<String> implSpecificHelp) voidsetPanel(TestbedPanel panel) voidsetRunningTest(TestbedTest runningTest) voidsetViewportTransform(IViewportTransform transform) voidsetWorldCreator(WorldCreator worldCreator)
-
Constructor Details
-
TestbedModel
public TestbedModel()
-
-
Method Details
-
getWorldCreator
-
setWorldCreator
-
setPanel
-
getPanel
-
setImplSpecificHelp
-
getImplSpecificHelp
-
setCalculatedFps
public void setCalculatedFps(float calculatedFps) -
getCalculatedFps
public float getCalculatedFps() -
setViewportTransform
-
setDebugDraw
-
getDebugDraw
-
getCurrTest
-
getKeys
public boolean[] getKeys()Gets the array of keys, index corresponding to the char value. -
getCodedKeys
public boolean[] getCodedKeys()Gets the array of coded keys, index corresponding to the coded key value. -
setCurrTestIndex
public void setCurrTestIndex(int argCurrTestIndex) -
getCurrTestIndex
public int getCurrTestIndex() -
setRunningTest
-
getRunningTest
-
addTestChangeListener
-
removeTestChangeListener
-
addTest
-
addCategory
-
getTestAt
-
isTestAt
public boolean isTestAt(int argIndex) -
clearTestList
public void clearTestList() -
getTestsSize
public int getTestsSize() -
getComboModel
-
getSettings
-