Class ColorControlPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class ColorControlPanel
extends JPanel
implements ActionListener
Let the user select what the colors in the animation mean.

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

$LastChangedDate: 2018-10-11 22:54:04 +0200 (Thu, 11 Oct 2018) $, @version $Revision: 4696 $, by $Author: averbraeck $, initial version 27 mei 2015

Author:
Peter Knoppers
See Also:
Serialized Form
  • Constructor Details

    • ColorControlPanel

      public ColorControlPanel​(GTUColorer gtuColorer)
      Add a ColorControlPanel to an AnimationPanel. Initially the ColorControlPanel will have no items. Items are added with the addItem method. The first item added automatically becomes the active one.
      Parameters:
      gtuColorer - GTUColorer; the switchable GTU colorer that will be controlled by this ColorControlPanel
  • Method Details