Class TrafCodDisplay

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.opentrafficsim.trafficcontrol.trafcod.TrafCodDisplay
All Implemented Interfaces:
MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class TrafCodDisplay extends JPanel implements MouseMotionListener, MouseListener
Display the current state of a TrafCOD machine.

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

Author:
Peter Knoppers
See Also:
  • Constructor Details

    • TrafCodDisplay

      public TrafCodDisplay(BufferedImage image)
      Construct a new TrafCODDisplay.
      Parameters:
      image - BufferedImage; the background image. This constructor does not make a deep copy of the image. Modifications of the image after calling this constructor might have interesting consequences, but should not result in crashes.
  • Method Details