Class DccAddressPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DccAddressPanel extends JPanel
Provide a graphical representation of the DCC address, either long or short

Expects one or more of the variables called:

  • Short Address
  • Long Address
  • Address Format (an Enum variable to select)
and handles the cases where:
  • All three are present - the normal advanced decoder case
  • Short Address is present and Long Address is not
  • Long Address is present and Short Address is not
At least one of Short Address and Long Address must be present!
See Also: