Class EjsSimulationControl

All Implemented Interfaces:
RootPaneContainer, Control, MainFrame, SimControl

public class EjsSimulationControl extends EjsControlFrame
  • Field Details

  • Constructor Details

    • EjsSimulationControl

      public EjsSimulationControl(Simulation model, DrawingFrame frame, String[] args)
      Constructor EjsSimulationControl
      Parameters:
      model -
      frame -
      args -
  • Method Details

    • customize

      protected void customize()
      Override this method to customize the EjsSimulationControl.
    • render

      public void render()
      Renders (draws) the panel immediately. Unlike repaint, the render method is draws the panel within the calling method's thread. This method is called automatically if the frame is animated.
      Overrides:
      render in class EjsControlFrame
    • clearDefaultXML

      public void clearDefaultXML()
      Clears the current XML default.
      Overrides:
      clearDefaultXML in class EjsControlFrame
    • resetSimulation

      public void resetSimulation()
      Resets the model and switches the text on the run button.
    • stepSimulation

      public void stepSimulation()
    • runSimulation

      public void runSimulation()
      Runs the Simulation switches the text on the run button
    • initialize

      public void initialize()
      Does the calculation.
      Overrides:
      initialize in class GroupControl