Class ItemPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
FamilyItemPanel, IconItemPanel, TextItemPanel

public abstract class ItemPanel extends JPanel
JPanels for the various item types that can be added to a Panel - e.g. Sensors, Turnouts, etc. Devices such as these have sets of icons to display their various states. Such sets are called a "family" in the code. These devices then may have sets of families to provide the user with a choice of the icon set to use for a particular device. These sets/families are defined in an xml file stored as xml/defaultPanelIcons.xml including the icon file paths, to be loaded by an iterator. The subclass FamilyItemPanel.java and its subclasses handles these devices. Other devices, e.g. Backgrounds or Memory, may use only one or no icon to display. The subclass IconItemPanel.java and its subclasses handles these devices.
See Also: