Class ColorControlPanel

    • Constructor Detail

      • 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 Detail

      • addItem

        public final void addItem​(GtuColorer colorer)
        Add one item to this ColorControlPanel. The getName method of the
        Parameters:
        colorer - GtuColorer; the GTUColorer that will be added