Class VirtualLcdPositionableFactory

java.lang.Object
jmri.jmrix.dccpp.swing.virtuallcd.VirtualLcdPositionableFactory
All Implemented Interfaces:
PositionableFactory

A factory for a VirtualLCD that can be put on a panel.
  • Constructor Details

  • Method Details

    • getIdentifier

      Description copied from interface: PositionableFactory
      Get an unique identifier for this factory. It's recommended that identifiers for connection specific factories begins with the connection type. Example: DCC-EX-VirtualDisplay.
      Specified by:
      getIdentifier in interface PositionableFactory
      Returns:
      an unique identifier for this factory
    • getDescription

      Description copied from interface: PositionableFactory
      Get the description for this factory.
      Specified by:
      getDescription in interface PositionableFactory
      Returns:
      the description
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: PositionableFactory
      Determines whenever this factory enabled. This method can for example check if a particular connection type is available. This is useful for positionables like DCC-VirtualLCD which are useful only for particular connections.
      Specified by:
      isEnabled in interface PositionableFactory
      Returns:
      true if enabled, false otherwise
    • hasDccEx

      public static boolean hasDccEx()
      Do we have a LocoNet connection?
      Returns:
      true if we have LocoNet, false otherwise
    • addPositionable

      Description copied from interface: PositionableFactory
      Add a positionable to the panel. The method might show a dialog to let the user configure the positionable.
      Specified by:
      addPositionable in interface PositionableFactory
      Parameters:
      editor - the editor to which the new positionable should be added
      doAfter - an optional task to run after the positionable is added to the editor, or null if no task is needed