AnyLogic 9
Expand
Font size

Customizing the model window appearance

You can customize the appearance of the model window by enabling or disabling zooming, access to the developer panel, and panning the window contents.

To open the properties:

  1. Click the name of your model in the project view in the sidebar on the left.
  2. Click Animation window in the elements view (at the bottom of this sidebar)

This opens the properties view, which defines the appearance of the model window that appears when you click Play on the AnyLogic toolbar.

The size of the experiment window is defined by the model frame and applies to all experiments and agent types of the model.

Properties

  • Width — The width of the model window.
  • Height — The height of the model window.
  • Enable zoom and panning — If selected, allows the user to pan and zoom the model window.
  • Enable developer panel — When selected, enables the developer panel in the model window.
    This can be done on the model runtime programmatically with the getExperimentHost.setDeveloperPanelEnabled(boolean yes) function.
  • Show developer panel on start — [Enabled only if the Enable developer panel checkbox is selected] If selected, the developer panel will be displayed by default in the model window each time the experiment is run.
    This can be done on the model runtime programmatically with the getExperimentHost.setDeveloperPanelVisibleOnStart(boolean yes) function.

Managing control panel programmatically

You can programmatically enable and disable buttons on the model window control panel, as well as test their current state (enabled or disabled).

How can we improve this article?