Class SwingFundamentalDiagram

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class SwingFundamentalDiagram extends SwingPlot
Embed a FundamentalDiagram in a Swing JPanel.

Copyright (c) 2023-2024 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
See Also:
  • Constructor Details

    • SwingFundamentalDiagram

      public SwingFundamentalDiagram(org.opentrafficsim.draw.graphs.FundamentalDiagram plot)
      Construct a new Swing container for FundamentalDiagram plot.
      Parameters:
      plot - FundamentalDiagram; the plot to embed
  • Method Details

    • getChartMouseListener

      protected org.jfree.chart.ChartMouseListener getChartMouseListener()
      Overridable; may return a chart listener for additional functions.
      Overrides:
      getChartMouseListener in class SwingPlot
      Returns:
      ChartMouseListener, null by default
    • addPopUpMenuItems

      protected void addPopUpMenuItems(JPopupMenu popupMenu)
      Overridable method to add pop up items.
      Overrides:
      addPopUpMenuItems in class SwingPlot
      Parameters:
      popupMenu - JPopupMenu; pop up menu
    • getPlot

      public org.opentrafficsim.draw.graphs.FundamentalDiagram getPlot()
      Retrieve the plot.
      Overrides:
      getPlot in class SwingPlot
      Returns:
      AbstractPlot; the plot