Class SwingTrajectoryPlot

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

public class SwingTrajectoryPlot extends SwingSpaceTimePlot
Embed a TrajectoryPlot 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

    • SwingTrajectoryPlot

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

    • getChartMouseListener

      protected org.jfree.chart.ChartMouseListener getChartMouseListener()
      Overridable; may return a chart listener for additional functions. This implementation creates a listener to disable and enable lanes through the legend.
      Overrides:
      getChartMouseListener in class SwingPlot
      Returns:
      ChartMouseListener, null by default
    • getPlot

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