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