Package dataModelFX.connectionNodes
Class ModuleIconFactory
java.lang.Object
dataModelFX.connectionNodes.ModuleIconFactory
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.
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
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleIconFactory
Get instance of the ModuleFactory.getModuleIcon
(String className) Get the module icon for a module class.javafx.scene.Node
Get the icon for a pamcontrolled unit.javafx.scene.Node
getModuleNode
(String className) Get the icon for a pam controlled unit.
-
Constructor Details
-
ModuleIconFactory
public ModuleIconFactory()
-
-
Method Details
-
getModuleNode
Get the icon for a pamcontrolled unit.- Parameters:
icon
- - the enum of the controlled unit- Returns:
- the icon for the controlled unit
-
getInstance
Get instance of the ModuleFactory.- Returns:
-
getModuleNode
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
Get the module icon for a module class.- Parameters:
className
- - the class name.- Returns:
- the module icon enum
-