001package jmri.jmrit.display.palette;
002
003import java.util.HashMap;
004import jmri.jmrit.catalog.NamedIcon;
005import org.slf4j.Logger;
006import org.slf4j.LoggerFactory;
007
008/**
009 * This class is used when FamilyItemPanel classes add or modify icon sets
010 * families.
011 * @author Pete Cressman Copyright (c) 2018
012 */
013public class SignalHeadIconDialog extends IconDialog {
014    
015    public SignalHeadIconDialog(String type, String family, FamilyItemPanel parent) {
016        super(type, family, parent);
017    }
018
019    @Override
020    protected void setMap(HashMap<String, NamedIcon> iconMap) {
021        if (iconMap != null) {
022            iconMap = ((SignalHeadItemPanel)_parent).getFilteredIconMap(iconMap);
023        }
024        super.setMap(iconMap);
025        log.debug("_iconMap size = {}", _iconMap.size());
026    }
027
028    private final static Logger log = LoggerFactory.getLogger(SignalHeadIconDialog.class);
029
030}
031