Class TestbedModel


  • public class TestbedModel
    extends java.lang.Object
    Model for the testbed
    • Field Detail

      • tests

        private final javax.swing.DefaultComboBoxModel tests
      • mouse

        private final Vec2 mouse
      • keys

        private final boolean[] keys
      • codedKeys

        private final boolean[] codedKeys
      • calculatedFps

        private float calculatedFps
      • panelWidth

        private float panelWidth
      • currTestIndex

        private int currTestIndex
    • 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​(DebugDraw argDraw)
      • getDebugDraw

        public DebugDraw getDebugDraw()
      • getMouse

        public Vec2 getMouse()
      • setMouse

        public void setMouse​(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)
      • 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()