Package org.jbox2d.testbed.framework
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 TypeClassDescriptionclass
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float
private final boolean[]
private int
private DebugDraw
private final boolean[]
private final java.util.Vector
<TestbedModel.TestChangedListener> private final Vec2
private float
private TestbedTest
private final TestbedSettings
private TestbedTest
private final javax.swing.DefaultComboBoxModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCategory
(java.lang.String argName) void
addTest
(TestbedTest argTest) void
addTestChangeListener
(TestbedModel.TestChangedListener argListener) void
float
boolean[]
Gets the array of coded keys, index corresponding to the coded key value.javax.swing.DefaultComboBoxModel
int
boolean[]
getKeys()
Gets the array of keys, index corresponding to the char value.getMouse()
float
getTestAt
(int argIndex) int
boolean
isTestAt
(int argIndex) void
removeTestChangeListener
(TestbedModel.TestChangedListener argListener) void
setCalculatedFps
(float calculatedFps) void
setCurrTestIndex
(int argCurrTestIndex) void
setDebugDraw
(DebugDraw argDraw) void
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
-
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
-