Class ModuleIconFactory

java.lang.Object
dataModelFX.connectionNodes.ModuleIconFactory

public class ModuleIconFactory extends Object
Handles module icons in PAMGuard.
This has two functions 1) It keeps in JavaFX stuff out of the PamModel and in the GUI 2) It means nodes can be created easily and copied for several GUI components.
Author:
Jamie Macaulay
  • Constructor Details

    • ModuleIconFactory

      public ModuleIconFactory()
  • Method Details

    • getModuleNode

      public javafx.scene.Node getModuleNode(ModuleIconFactory.ModuleIcon icon)
      Get the icon for a pamcontrolled unit.
      Parameters:
      icon - - the enum of the controlled unit
      Returns:
      the icon for the controlled unit
    • getInstance

      public static ModuleIconFactory getInstance()
      Get instance of the ModuleFactory.
      Returns:
    • getModuleNode

      public javafx.scene.Node getModuleNode(String className)
      Get the icon for a pam controlled unit.
      Parameters:
      icon - - the class name string of the controlled unit.
      Returns:
      the icon for the controlled unit
    • getModuleIcon

      public ModuleIconFactory.ModuleIcon getModuleIcon(String className)
      Get the module icon for a module class.
      Parameters:
      className - - the class name.
      Returns:
      the module icon enum