Class SwingSpaceTimePlot

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
SwingContourPlot, SwingTrajectoryPlot

public class SwingSpaceTimePlot extends SwingPlot
Embed a SpaceTimePlot 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

    • SwingSpaceTimePlot

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

    • 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.AbstractSpaceTimePlot getPlot()
      Retrieve the plot.
      Overrides:
      getPlot in class SwingPlot
      Returns:
      AbstractPlot; the plot