001package jmri.jmrit.display.palette; 002 003import java.util.HashMap; 004import javax.annotation.Nonnull; 005 006import jmri.jmrit.catalog.NamedIcon; 007import jmri.jmrit.display.DisplayFrame; 008import jmri.jmrit.display.controlPanelEditor.PortalIcon; 009 010/** 011 * ItemPanel for PortalIcons. 012 * 013* @author Pete Cressman Copyright (c) 2013, 2020 014 */ 015public class PortalItemPanel extends FamilyItemPanel { 016 017 public PortalItemPanel(DisplayFrame parentFrame, String type, String family) { 018 super(parentFrame, type, family); 019 } 020 021 @Override 022 protected void makeFamiliesPanel() { 023 _suppressDragging = true; 024 super.makeFamiliesPanel(); 025 _previewPanel.setVisible(false); 026 } 027 028 @Override 029 protected String getDisplayKey() { 030 return "toArrow"; 031 } 032 033 @Override 034 @Nonnull 035 protected HashMap<String, NamedIcon> makeNewIconMap(String type) { 036 HashMap<String, NamedIcon> map = super.makeNewIconMap(type); 037 map.put(PortalIcon.HIDDEN, new NamedIcon("resources/icons/Invisible.gif", "resources/icons/Invisible.gif")); 038 return map; 039 } 040 041}