Class TestbedModel
java.lang.Object
org.jbox2d.testbed.framework.TestbedModel
public class TestbedModel
extends java.lang.Object
Model for the testbed
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate final boolean[]private intprivate DebugDrawprivate final boolean[]private final java.util.Vector<TestbedModel.TestChangedListener> private final Vec2private floatprivate TestbedTestprivate final TestbedSettingsprivate TestbedTestprivate final javax.swing.DefaultComboBoxModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategory(java.lang.String argName) voidaddTest(TestbedTest argTest) voidaddTestChangeListener(TestbedModel.TestChangedListener argListener) voidfloatboolean[]Gets the array of coded keys, index corresponding to the coded key value.javax.swing.DefaultComboBoxModelintboolean[]getKeys()Gets the array of keys, index corresponding to the char value.getMouse()floatgetTestAt(int argIndex) intbooleanisTestAt(int argIndex) voidremoveTestChangeListener(TestbedModel.TestChangedListener argListener) voidsetCalculatedFps(float calculatedFps) voidsetCurrTestIndex(int argCurrTestIndex) voidsetDebugDraw(DebugDraw argDraw) voidvoidsetPanelWidth(float panelWidth) voidsetRunningTest(TestbedTest runningTest) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
tests
private final javax.swing.DefaultComboBoxModel tests -
settings
-
draw
-
test
-
mouse
-
listeners
-
keys
private final boolean[] keys -
codedKeys
private final boolean[] codedKeys -
calculatedFps
private float calculatedFps -
panelWidth
private float panelWidth -
currTestIndex
private int currTestIndex -
runningTest
-
-
Constructor Details
-
TestbedModel
public TestbedModel()
-
-
Method Details
-
setCalculatedFps
public void setCalculatedFps(float calculatedFps) -
getCalculatedFps
public float getCalculatedFps() -
setPanelWidth
public void setPanelWidth(float panelWidth) -
getPanelWidth
public float getPanelWidth() -
setDebugDraw
-
getDebugDraw
-
getCurrTest
-
getMouse
-
setMouse
-
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
-
getRunningTest
-
addTestChangeListener
-
removeTestChangeListener
-
addTest
-
addCategory
public void addCategory(java.lang.String argName) -
getTestAt
-
isTestAt
public boolean isTestAt(int argIndex) -
clearTestList
public void clearTestList() -
getTestsSize
public int getTestsSize() -
getComboModel
public javax.swing.DefaultComboBoxModel getComboModel() -
getSettings
-