Interface OtsSimulationPanelDecorator


public interface OtsSimulationPanelDecorator
Decorator for the OtsSimulationPanel. Default method implementations are provided which sub-classes may implement with different decoration, e.g. additional tabs.

Copyright (c) 2026-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Field Details

  • Method Details

    • decorate

      default void decorate(OtsSimulationPanel simulationPanel, Network network)
      Invokes all decoration methods.
      Parameters:
      simulationPanel - simulation panel
      network - network
    • setAnimationToggles

      default void setAnimationToggles(OtsSimulationPanel simulationPanel)
      Set simulation toggles. The default implementation sets standard icon toggles.
      Parameters:
      simulationPanel - simulation panel
    • animateSimulation

      default void animateSimulation(OtsSimulationPanel simulationPanel, Network network)
      Creates the animation objects. This method is overridable. The default uses DefaultAnimationFactory.
      Parameters:
      simulationPanel - simulation panel
      network - network
    • addTabs

      default void addTabs(OtsSimulationPanel simulationPanel, Network network)
      Adds tabs. The default implementation does nothing.
      Parameters:
      simulationPanel - simulation panel
      network - network
    • setupDemo

      default void setupDemo(OtsSimulationPanel simulationPanel, Network network)
      Setup a demo panel within the simulation panel. The default implementation does nothing.
      Parameters:
      simulationPanel - simulation panel
      network - network
    • getGtuColorers

      default List<Colorer<? super Gtu>> getGtuColorers()
      Return GTU colorers. The default implementation returns the default colorers.
      Returns:
      GTU colorers
    • getGtuMarkers

      Returns a map of markers to use on GTU types. The default implementation returns default markers (NL.TRUCK as square).
      Returns:
      map of markers to use on GTU types